gengtype.c: Don't use UNION_INIT_ZERO.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 16 Jun 2003 21:29:20 +0000 (21:29 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 16 Jun 2003 21:29:20 +0000 (21:29 +0000)
* gengtype.c: Don't use UNION_INIT_ZERO.
* system.h (UNION_INIT_ZERO): Delete.

From-SVN: r68042

gcc/ChangeLog
gcc/gengtype.c
gcc/system.h

index bdd10703a469bdc661df9d575a37483680a80e40..d9e4b37e205da2b582f52c317512de33b147e8d8 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * gengtype.c: Don't use UNION_INIT_ZERO.
+       * system.h (UNION_INIT_ZERO): Delete.
+
 2003-06-16  Richard Henderson  <rth@redhat.com>
 
        * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
index 0e58dc0c717c8d6dcd6c31774dbf8f02fdb16f5c..12608875b87403251eb6333fbfd2b4fdfd806d0b 100644 (file)
@@ -83,8 +83,7 @@ xasprintf (const char *format, ...)
 /* The one and only TYPE_STRING.  */
 
 struct type string_type = {
-  TYPE_STRING, NULL, NULL, GC_USED
-  UNION_INIT_ZERO
+  TYPE_STRING, NULL, NULL, GC_USED, {0}
 };
 
 /* Lists of various things.  */
index 99291de0baf8d457b228a1ce8cd3243b716b4990..3229d5cb2245f586ecf644407054a428bea7e6aa 100644 (file)
@@ -515,16 +515,6 @@ extern void abort (void);
 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER)
 #endif
 
-/* Traditional C cannot initialize union members of structs.  Provide
-   a macro which expands appropriately to handle it.  This only works
-   if you intend to initialize the union member to zero since it relies
-   on default initialization to zero in the traditional C case.  */
-#ifdef __STDC__
-#define UNION_INIT_ZERO , {0}
-#else
-#define UNION_INIT_ZERO
-#endif
-
 /* Various error reporting routines want to use __FUNCTION__.  */
 #if (GCC_VERSION < 2007)
 #ifndef __FUNCTION__