On i386 long double is 80bit expanded to 96bits or 12 bytes. This is the
authorclaudio <claudio@openbsd.org>
Wed, 2 Oct 2024 12:31:33 +0000 (12:31 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 2 Oct 2024 12:31:33 +0000 (12:31 +0000)
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

index 3306edc..e31a06e 100644 (file)
@@ -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