Commit d05a5492 by Michael Meissner Committed by Michael Meissner

Make rtx, tree types type correct if the appropriate include files was not included

From-SVN: r20114
parent b7698cf0
Thu May 28 09:36:39 1998 Michael Meissner <meissner@cygnus.com>
* except.h (rtx): Define rtx type correctly if needed.
* function.h (rtx): Ditto.
(tree): Define tree type correctly if needed.
* c-pragma.c (toplevel): Include rtl.h.
* stor-layout.c (toplevel): Move include of rtl.h before
except.h.
* Makefile.in (c-pragma.o): Add except.h, rtl.h dependencies.
(tree.o): Add except.h dependency.
Wed May 27 22:02:40 1998 Jeffrey A Law (law@cygnus.com) Wed May 27 22:02:40 1998 Jeffrey A Law (law@cygnus.com)
* reload1.c: Revert accidental checkin. * reload1.c: Revert accidental checkin.
......
...@@ -1259,8 +1259,8 @@ c-lex.o : c-lex.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-lex.h c-tree.h \ ...@@ -1259,8 +1259,8 @@ c-lex.o : c-lex.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-lex.h c-tree.h \
toplev.h output.h toplev.h output.h
c-aux-info.o : c-aux-info.c $(CONFIG_H) system.h $(TREE_H) c-tree.h flags.h c-aux-info.o : c-aux-info.c $(CONFIG_H) system.h $(TREE_H) c-tree.h flags.h
c-convert.o : c-convert.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h c-convert.o : c-convert.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h
c-pragma.o: c-pragma.c $(CONFIG_H) system.h $(TREE_H) except.h function.h \ c-pragma.o: c-pragma.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) except.h \
defaults.h c-pragma.h toplev.h function.h defaults.h c-pragma.h toplev.h
c-iterate.o: c-iterate.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-tree.h \ c-iterate.o: c-iterate.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-tree.h \
flags.h toplev.h flags.h toplev.h
...@@ -1341,7 +1341,7 @@ prefix.o: prefix.c $(CONFIG_H) system.h gansidecl.h Makefile ...@@ -1341,7 +1341,7 @@ prefix.o: prefix.c $(CONFIG_H) system.h gansidecl.h Makefile
convert.o: convert.c $(CONFIG_H) $(TREE_H) flags.h convert.h toplev.h convert.o: convert.c $(CONFIG_H) $(TREE_H) flags.h convert.h toplev.h
tree.o : tree.c $(CONFIG_H) system.h $(TREE_H) flags.h function.h toplev.h tree.o : tree.c $(CONFIG_H) system.h $(TREE_H) flags.h function.h toplev.h except.h
print-tree.o : print-tree.c $(CONFIG_H) system.h $(TREE_H) print-tree.o : print-tree.c $(CONFIG_H) system.h $(TREE_H)
stor-layout.o : stor-layout.c $(CONFIG_H) system.h $(TREE_H) flags.h \ stor-layout.o : stor-layout.c $(CONFIG_H) system.h $(TREE_H) flags.h \
function.h expr.h insn-codes.h $(RTL_H) toplev.h except.h function.h expr.h insn-codes.h $(RTL_H) toplev.h except.h
......
...@@ -20,6 +20,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -20,6 +20,7 @@ Boston, MA 02111-1307, USA. */
#include "config.h" #include "config.h"
#include "system.h" #include "system.h"
#include "rtl.h"
#include "tree.h" #include "tree.h"
#include "except.h" #include "except.h"
#include "function.h" #include "function.h"
......
...@@ -19,9 +19,9 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -19,9 +19,9 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#if !defined(NULL_RTX) && !defined(rtx)
#ifndef GET_CODE typedef struct rtx_def *_except_rtx;
#define rtx int * #define rtx _except_rtx
#endif #endif
#ifdef TREE_CODE #ifdef TREE_CODE
...@@ -388,3 +388,7 @@ rtx expand_builtin_dwarf_reg_size PROTO((tree, rtx)); ...@@ -388,3 +388,7 @@ rtx expand_builtin_dwarf_reg_size PROTO((tree, rtx));
int in_same_eh_region PROTO((rtx, rtx)); int in_same_eh_region PROTO((rtx, rtx));
void free_insn_eh_region PROTO((void)); void free_insn_eh_region PROTO((void));
void init_insn_eh_region PROTO((rtx, int)); void init_insn_eh_region PROTO((rtx, int));
#ifdef rtx
#undef rtx
#endif
...@@ -19,11 +19,13 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -19,11 +19,13 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#ifndef NULL_TREE #if !defined(NULL_TREE) && !defined(tree)
#define tree int * typedef union union_node *_function_tree;
#define tree _function_tree
#endif #endif
#ifndef GET_CODE #if !defined(NULL_RTX) && !defined(rtx)
#define rtx int * typedef struct rtx_def *_function_rtx;
#define rtx _function_rtx
#endif #endif
struct var_refs_queue struct var_refs_queue
......
...@@ -23,10 +23,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -23,10 +23,10 @@ Boston, MA 02111-1307, USA. */
#include "system.h" #include "system.h"
#include "tree.h" #include "tree.h"
#include "rtl.h"
#include "flags.h" #include "flags.h"
#include "except.h" #include "except.h"
#include "function.h" #include "function.h"
#include "rtl.h"
#include "expr.h" #include "expr.h"
#include "toplev.h" #include "toplev.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment