Commit 88efc60a by Richard Kenner

If TREE_CODE undefined, make an incomplete union for tree.

(STDIO_PROTO): Define here if not already defined.
(read_rtx): Use STDIO_PROTO.
(output_constant_def, immed_real_const): Use "union tree_node *".
(immed_real_const_1): Move declaration to real.h.
(rtx_to_tree_code): Supply prototype.

From-SVN: r7106
parent 92544bdf
/* Register Transfer Language (RTL) definitions for GNU C-Compiler /* Register Transfer Language (RTL) definitions for GNU C-Compiler
Copyright (C) 1987, 1991, 1992, 1993 Free Software Foundation, Inc. Copyright (C) 1987, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -25,6 +25,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -25,6 +25,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef ABS /* Likewise. */ #undef ABS /* Likewise. */
#undef PC /* Likewise. */ #undef PC /* Likewise. */
#ifndef TREE_CODE
union tree_node;
#endif
/* Register Transfer Language EXPRESSIONS CODES */ /* Register Transfer Language EXPRESSIONS CODES */
#define RTX_CODE enum rtx_code #define RTX_CODE enum rtx_code
...@@ -163,6 +167,14 @@ typedef struct rtx_def ...@@ -163,6 +167,14 @@ typedef struct rtx_def
#endif #endif
#endif #endif
#ifndef STDIO_PROTO
#ifdef BUFSIZ
#define STDIO_PROTO(ARGS) PROTO(ARGS)
#else
#define STDIO_PROTO(ARGS) ()
#endif
#endif
#define NULL_RTX (rtx) 0 #define NULL_RTX (rtx) 0
/* Define a generic NULL if one hasn't already been defined. */ /* Define a generic NULL if one hasn't already been defined. */
...@@ -661,11 +673,7 @@ extern rtx gen_rtx PVPROTO((enum rtx_code, ...@@ -661,11 +673,7 @@ extern rtx gen_rtx PVPROTO((enum rtx_code,
enum machine_mode, ...)); enum machine_mode, ...));
extern rtvec gen_rtvec PVPROTO((int, ...)); extern rtvec gen_rtvec PVPROTO((int, ...));
#ifdef BUFSIZ /* stdio.h has been included */ extern rtx read_rtx STDIO_PROTO((FILE *));
extern rtx read_rtx PROTO((FILE *));
#else
extern rtx read_rtx ();
#endif
#if 0 #if 0
/* At present, don't prototype xrealloc, since all of the callers don't /* At present, don't prototype xrealloc, since all of the callers don't
...@@ -898,20 +906,10 @@ extern rtx *find_single_use PROTO((rtx, rtx, rtx *)); ...@@ -898,20 +906,10 @@ extern rtx *find_single_use PROTO((rtx, rtx, rtx *));
expr.h to be included for the enumeration. */ expr.h to be included for the enumeration. */
extern rtx expand_expr (); extern rtx expand_expr ();
extern rtx immed_real_const_1();
#ifdef TREE_CODE
/* rtl.h and tree.h were included. */
extern rtx output_constant_def PROTO((tree));
extern rtx immed_real_const PROTO((tree));
extern rtx immed_real_const_1 PROTO((REAL_VALUE_TYPE, enum machine_mode));
extern tree make_tree PROTO((tree, rtx));
#else extern rtx output_constant_def PROTO((union tree_node *));
extern rtx output_constant_def (); extern rtx immed_real_const PROTO((union tree_node *));
extern rtx immed_real_const (); extern union tree_node *make_tree PROTO((union tree_node *, rtx));
extern rtx immed_real_const_1 ();
#endif
/* Define a default value for STORE_FLAG_VALUE. */ /* Define a default value for STORE_FLAG_VALUE. */
...@@ -942,5 +940,7 @@ extern int cse_not_expected; ...@@ -942,5 +940,7 @@ extern int cse_not_expected;
extern rtx *regno_reg_rtx; extern rtx *regno_reg_rtx;
/* Translates rtx code to tree code, for those codes needed by /* Translates rtx code to tree code, for those codes needed by
REAL_ARITHMETIC. */ REAL_ARITHMETIC. The function returns an int because the caller may not
extern int rtx_to_tree_code (); know what `enum tree_code' means. */
extern int rtx_to_tree_code PROTO((enum rtx_code));
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