From 2f78c311762ab66530c1e0a09ff4fe32a8406023 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Fri, 17 Aug 2001 20:29:21 +0000 Subject: 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 --- gcc/system.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'gcc/system.h') 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 -- cgit v1.1