summaryrefslogtreecommitdiffstats
path: root/gcc/system.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-17 20:29:21 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-17 20:29:21 +0000
commit6a3e3d6dbfa5e85db7583c8f56e9f38d7231f75d (patch)
tree4bd6d1fe0235550c272807e7302e8461a3c02f44 /gcc/system.h
parent6a51e4c43405b964cd360dc0d6d5d01d51a15f59 (diff)
downloadppe42-gcc-6a3e3d6dbfa5e85db7583c8f56e9f38d7231f75d.tar.gz
ppe42-gcc-6a3e3d6dbfa5e85db7583c8f56e9f38d7231f75d.zip
* system.h: Forward-declare struct rtx_def, struct rtvec_def,
and union tree_node. Typedef rtx, rtvec, and tree. Fix comment. * rtl.h: Don't forward-declare union tree_node here. Don't typedef rtx or rtvec here. Change all uses of struct rtx_def *, struct rtvec_def *, or union tree_node * to use rtx, rtvec, and tree respectively. * tree.h: Don't forward-declare struct rtx_def here. Don't typedef tree here. Change all uses of struct rtx_def *, struct rtvec_def *, or union tree_node * to use rtx, rtvec, and tree respectively. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44980 138bc75d-0d04-0410-961f-82ee72b054a4
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