This breaks ia64:

In file included from ./tm.h:23,
                 from ../../gcc/gencheck.c:23:
./options.h:7816:40: error: ISO C++ forbids zero-size array 'explicit_mask' 
[-Werror=pedantic]
 7816 |   unsigned HOST_WIDE_INT explicit_mask[0];
      |                                        ^
./options.h:7816:26: error: zero-size array member 
'cl_target_option::explicit_mask' not at end of 'struct cl_target_option' 
[-Werror=pedantic]
 7816 |   unsigned HOST_WIDE_INT explicit_mask[0];
      |                          ^~~~~~~~~~~~~
./options.h:7812:16: note: in the definition of 'struct cl_target_option'
 7812 | struct GTY(()) cl_target_option
      |                ^~~~~~~~~~~~~~~~

$ diff -u gcc-2020100[34]/Build/gcc/options.h
--- gcc-20201003/Build/gcc/options.h    2020-10-03 04:50:58.000000000 +0200
+++ gcc-20201004/Build/gcc/options.h    2020-10-04 04:25:18.000000000 +0200
@@ -7812,8 +7812,9 @@
 struct GTY(()) cl_target_option
 {
   int x_target_flags;
-  /* 1 members */
-  unsigned HOST_WIDE_INT explicit_mask[1];
+  /* 0 members */
+  unsigned HOST_WIDE_INT explicit_mask[0];
+  int explicit_mask_target_flags;
 };
 
 

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to