summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gengtype.c3
-rw-r--r--gcc/system.h10
3 files changed, 6 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bdd10703a46..d9e4b37e205 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/gengtype.c b/gcc/gengtype.c
index 0e58dc0c717..12608875b87 100644
--- a/gcc/gengtype.c
+++ b/gcc/gengtype.c
@@ -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. */
diff --git a/gcc/system.h b/gcc/system.h
index 99291de0baf..3229d5cb224 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -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__