summaryrefslogtreecommitdiffstats
path: root/gcc/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 295c2870d97..58d0925a67b 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -491,8 +491,8 @@ extern void abort PARAMS ((void));
#endif
/* Provide some sort of boolean type. We use stdbool.h if it's
- available. This is dead last because various system headers might
- mess us up. */
+ available. This must be after all inclusion of system headers,
+ as some of them will mess us up. */
#undef bool
#undef true
#undef false
@@ -513,6 +513,18 @@ typedef char _Bool;
#define TRUE true
#define FALSE false
+/* Provide three core typedefs used by everything, if we are compiling
+ GCC. These used to be found in rtl.h and tree.h, but this is no
+ longer practical. */
+#ifdef IN_GCC
+struct rtx_def;
+struct rtvec_def;
+union tree_node;
+typedef struct rtx_def *rtx;
+typedef struct rtvec_def *rtvec;
+typedef union tree_node *tree;
+#endif
+
/* As the last action in this file, we poison the identifiers that
shouldn't be used. Note, luckily gcc-3.0's token-based integrated
preprocessor won't trip on poisoned identifiers that arrive from
OpenPOWER on IntegriCloud