diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2001-08-17 20:29:21 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2001-08-17 20:29:21 +0000 |
commit | 2f78c311762ab66530c1e0a09ff4fe32a8406023 (patch) | |
tree | 4bd6d1fe0235550c272807e7302e8461a3c02f44 /gcc/system.h | |
parent | 91625004b2e16ac5e92b7e22fbfa4189b6818786 (diff) | |
download | gcc-2f78c311762ab66530c1e0a09ff4fe32a8406023.zip gcc-2f78c311762ab66530c1e0a09ff4fe32a8406023.tar.gz gcc-2f78c311762ab66530c1e0a09ff4fe32a8406023.tar.bz2 |
system.h: Forward-declare struct rtx_def, struct rtvec_def, and union tree_node.
* 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.
From-SVN: r44980
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gcc/system.h b/gcc/system.h index 295c287..58d0925 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 |