aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-07-21 14:48:03 +0000
committerJason Merrill <jason@redhat.com>2011-07-21 14:48:03 +0000
commitfabc240fae5c947bbd100105981016e2c4625553 (patch)
tree3060f77dc0b0ef97b4b40bde2e4dd30ff267e372 /gcc/system.h
parent6f2835e745b78e8499ca4ce61e80b52759e64318 (diff)
* system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
* recog.h (struct insn_data_d): Check it instead of HAVE_DESIGNATED_INITIALIZERS. * genoutput.c (output_insn_data): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@176572 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index e02cbcd012c..ce027b2ea1e 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -500,6 +500,12 @@ extern int vsnprintf(char *, size_t, const char *, va_list);
&& !defined(__cplusplus))
#endif
+#if !defined(HAVE_DESIGNATED_UNION_INITIALIZERS)
+#define HAVE_DESIGNATED_UNION_INITIALIZERS \
+ (((GCC_VERSION >= 2007) || (__STDC_VERSION__ >= 199901L)) \
+ && (!defined(__cplusplus) || (GCC_VERSION >= 4007)))
+#endif
+
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif