Commit 4ff58371 by Kaveh R. Ghazi Committed by Kaveh Ghazi

gengtype.c: Don't use UNION_INIT_ZERO.

	* gengtype.c: Don't use UNION_INIT_ZERO.
	* system.h (UNION_INIT_ZERO): Delete.

From-SVN: r68042
parent 8363b773
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> 2003-06-16 Richard Henderson <rth@redhat.com>
* simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
......
...@@ -83,8 +83,7 @@ xasprintf (const char *format, ...) ...@@ -83,8 +83,7 @@ xasprintf (const char *format, ...)
/* The one and only TYPE_STRING. */ /* The one and only TYPE_STRING. */
struct type string_type = { struct type string_type = {
TYPE_STRING, NULL, NULL, GC_USED TYPE_STRING, NULL, NULL, GC_USED, {0}
UNION_INIT_ZERO
}; };
/* Lists of various things. */ /* Lists of various things. */
......
...@@ -515,16 +515,6 @@ extern void abort (void); ...@@ -515,16 +515,6 @@ extern void abort (void);
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER) #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER)
#endif #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__. */ /* Various error reporting routines want to use __FUNCTION__. */
#if (GCC_VERSION < 2007) #if (GCC_VERSION < 2007)
#ifndef __FUNCTION__ #ifndef __FUNCTION__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment