https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128302

John David Anglin <danglin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danglin at gcc dot gnu.org

--- Comment #6 from John David Anglin <danglin at gcc dot gnu.org> ---
On targets without _BitInt support (or where __BITINT_MAXWIDTH__ < 65535, such
as hppa64-hp-hpux11.11), the new testcase gcc.dg/builtin-clear-padding-4.c
added in r17-6531-g728d0bebb85 fails to compile because c3 and c4 are missing
from the #else branch:
text
gcc/testsuite/gcc.dg/builtin-clear-padding-4.c: In function 'main':
gcc/testsuite/gcc.dg/builtin-clear-padding-4.c:29:22: error: 'c4' undeclared
(first use in this function); did you mean 'c2'?
gcc/testsuite/gcc.dg/builtin-clear-padding-4.c:32:9: error: 'c3' undeclared
(first use in this function); did you mean 'c2'?

Untested fix:
diff
--- a/gcc/testsuite/gcc.dg/builtin-clear-padding-4.c
+++ b/gcc/testsuite/gcc.dg/builtin-clear-padding-4.c
@@ -5,7 +5,7 @@
 #if __BITINT_MAXWIDTH__ >= 65535
 struct C { _BitInt(65535) a : 65531; unsigned _BitInt(65535) b : 65531; } c1,
c2, c3, c4;
 #else
-struct C { int a : 5; unsigned b : 5; } c1, c2;
+struct C { int a : 5; unsigned b : 5; } c1, c2, c3, c4;
 #endif

Reply via email to