From 5dd1cbcd1690e4d0d4fb93890f470f56f5bb9342 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 2 Oct 2024 12:31:34 +0000 Subject: On i386 long double is 80bit expanded to 96bits or 12 bytes. This is the size that the ctftools ctfconvert uses and I think we should do as well. Fixes regress/usr.bin/ctfdump on i386. OK miod@ --- usr.bin/ctfconv/generate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/ctfconv/generate.c b/usr.bin/ctfconv/generate.c index 3306edcb624..e31a06ef9ea 100644 --- a/usr.bin/ctfconv/generate.c +++ b/usr.bin/ctfconv/generate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: generate.c,v 1.7 2024/02/27 06:58:19 anton Exp $ */ +/* $OpenBSD: generate.c,v 1.8 2024/10/02 12:31:33 claudio Exp $ */ /* * Copyright (c) 2017 Martin Pieuchot @@ -208,6 +208,8 @@ imcs_add_type(struct imcs *imcs, struct itype *it) ctt.ctt_size = 4; else if (size <= 64) ctt.ctt_size = 8; + else if (size <= 96) + ctt.ctt_size = 12; else ctt.ctt_size = 16; } else -- cgit v1.2.3