From 7bdb32b97ef4687f7cbaad717130a78aa2a86a2b Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 10 Jan 2000 23:48:03 +0000 Subject: [PATCH] Makefile.in (optabs.o): Depend on real.h * Makefile.in (optabs.o): Depend on real.h (resource.o): Depend on insn-attr.h * builtins.c (result_vector): Wrap prototype in macro conditions governing definition and use. * c-common.c: Include tm_p.h. * c-lex.c: Likewise. * elfos.h: Constify a char*. * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length. (get_attr_length, shorten_branches, profile_after_prologue): Mark parameter with ATTRIBUTE_UNUSED. * fold-const.c (exact_real_inverse): Wrap variable `i' in CHECK_FLOAT_VALUE. * haifa-sched.c (schedule_insns): Mark parameter with ATTRIBUTE_UNUSED. * optabs.c: Include real.h. * real.h (ereal_atof): Add prototype arguments. * resource.c: Include insn-attr.h. * sdbout.c (sdbout_queue_anonymous_type, sdbout_dequeue_anonymous_types): Wrap in macro SDB_ALLOW_FORWARD_REFERENCES. (sdbout_init, sdbout_start_new_source_file): Mark parameter with ATTRIBUTE_UNUSED. * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return. * stupid.c: Include tm_p.h. * tree.c (real_value_from_int_cst): Mark parameter with ATTRIBUTE_UNUSED. cp: * lex.c: Include tm_p.h. ch: * lex.c: Include tm_p.h. From-SVN: r31308 --- gcc/ChangeLog | 43 +++++++++++++++++++++++++++++++++++++++++++ gcc/Makefile.in | 5 +++-- gcc/builtins.c | 2 ++ gcc/c-common.c | 1 + gcc/c-lex.c | 1 + gcc/ch/ChangeLog | 4 ++++ gcc/ch/lex.c | 1 + gcc/config/elfos.h | 6 +++--- gcc/cp/ChangeLog | 4 ++++ gcc/cp/lex.c | 1 + gcc/final.c | 8 +++++--- gcc/fold-const.c | 2 ++ gcc/haifa-sched.c | 2 +- gcc/optabs.c | 1 + gcc/real.h | 2 +- gcc/resource.c | 1 + gcc/sdbout.c | 6 ++++-- gcc/stmt.c | 2 ++ gcc/stupid.c | 1 + gcc/tree.c | 2 +- 20 files changed, 82 insertions(+), 13 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5bca8abda5..3ec9803993f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,46 @@ +2000-01-10 Kaveh R. Ghazi + + * Makefile.in (optabs.o): Depend on real.h + (resource.o): Depend on insn-attr.h + + * builtins.c (result_vector): Wrap prototype in macro conditions + governing definition and use. + + * c-common.c: Include tm_p.h. + + * c-lex.c: Likewise. + + * elfos.h: Constify a char*. + + * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length. + (get_attr_length, shorten_branches, profile_after_prologue): Mark + parameter with ATTRIBUTE_UNUSED. + + * fold-const.c (exact_real_inverse): Wrap variable `i' in + CHECK_FLOAT_VALUE. + + * haifa-sched.c (schedule_insns): Mark parameter with + ATTRIBUTE_UNUSED. + + * optabs.c: Include real.h. + + * real.h (ereal_atof): Add prototype arguments. + + * resource.c: Include insn-attr.h. + + * sdbout.c (sdbout_queue_anonymous_type, + sdbout_dequeue_anonymous_types): Wrap in macro + SDB_ALLOW_FORWARD_REFERENCES. + (sdbout_init, sdbout_start_new_source_file): Mark parameter with + ATTRIBUTE_UNUSED. + + * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return. + + * stupid.c: Include tm_p.h. + + * tree.c (real_value_from_int_cst): Mark parameter with + ATTRIBUTE_UNUSED. + 2000-01-10 Kaveh R. Ghazi * i960-protos.h: New file. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 4fc389238e0..f49b65fd659 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1514,7 +1514,7 @@ explow.o : explow.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \ insn-codes.h toplev.h function.h optabs.o : optabs.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \ insn-flags.h insn-config.h insn-codes.h $(EXPR_H) $(RECOG_H) reload.h \ - toplev.h ggc.h + toplev.h ggc.h real.h dbxout.o : dbxout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h $(REGS_H) \ insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h dbxout.h \ toplev.h gcc.h @@ -1552,7 +1552,8 @@ gcse.o : gcse.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h \ flags.h real.h insn-config.h $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) \ function.h output.h toplev.h resource.o : resource.c $(CONFIG_H) $(RTL_H) hard-reg-set.h system.h \ - $(BASIC_BLOCK_H) $(REGS_H) flags.h output.h resource.h function.h toplev.h + $(BASIC_BLOCK_H) $(REGS_H) flags.h output.h resource.h function.h toplev.h \ + insn-attr.h lcm.o : lcm.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \ real.h insn-config.h $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) profile.o : profile.c $(CONFIG_H) system.h $(RTL_H) flags.h insn-flags.h \ diff --git a/gcc/builtins.c b/gcc/builtins.c index 43e87b19a66..eae9346f244 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -58,7 +58,9 @@ static tree c_strlen PROTO((tree)); static rtx get_memory_rtx PROTO((tree)); static int apply_args_size PROTO((void)); static int apply_result_size PROTO((void)); +#if defined (HAVE_untyped_call) || defined (HAVE_untyped_return) static rtx result_vector PROTO((int, rtx)); +#endif static rtx expand_builtin_apply_args PROTO((void)); static rtx expand_builtin_apply_args_1 PROTO((void)); static rtx expand_builtin_apply PROTO((rtx, rtx, rtx)); diff --git a/gcc/c-common.c b/gcc/c-common.c index f21a68ae9b2..988ed50d360 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */ #include "c-pragma.h" #include "rtl.h" #include "ggc.h" +#include "tm_p.h" #if USE_CPPLIB #include "cpplib.h" diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 612f3f5b0e2..905310d4f9a 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -33,6 +33,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "intl.h" #include "ggc.h" +#include "tm_p.h" /* MULTIBYTE_CHARS support only works for native compilers. ??? Ideally what we want is to model widechar support after diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog index 0a073e3b1c1..b88227f5456 100644 --- a/gcc/ch/ChangeLog +++ b/gcc/ch/ChangeLog @@ -1,3 +1,7 @@ +2000-01-10 Kaveh R. Ghazi + + * lex.c: Include tm_p.h. + 2000-01-04 Kaveh R. Ghazi * actions.c (update_else_range_for_int_const): Initialize diff --git a/gcc/ch/lex.c b/gcc/ch/lex.c index 44029b99d20..c48e1856e8e 100644 --- a/gcc/ch/lex.c +++ b/gcc/ch/lex.c @@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */ #include "parse.h" #include "obstack.h" #include "toplev.h" +#include "tm_p.h" #ifdef DWARF_DEBUGGING_INFO #include "dwarfout.h" diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index a3bfcd3e764..8476c2bff2a 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -356,10 +356,10 @@ dtors_section () \ { \ int len; \ int sec; \ - char *name; \ + const char *name; \ char *string; \ - char *prefix; \ - static char *prefixes[4][2] = \ + const char *prefix; \ + static const char *prefixes[4][2] = \ { \ { ".text.", ".gnu.linkonce.t." }, \ { ".rodata.", ".gnu.linkonce.r." }, \ diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f434ab19bd3..8778233ccb3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-01-10 Kaveh R. Ghazi + + * lex.c: Include tm_p.h. + 2000-01-07 Nathan Sidwell * lang-specs.h (__GXX_ABI_VERSION): New preprocessor macro. diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 01ec8fcb02d..237feb2418e 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -38,6 +38,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "output.h" #include "ggc.h" +#include "tm_p.h" #ifdef MULTIBYTE_CHARS #include "mbchar.h" diff --git a/gcc/final.c b/gcc/final.c index 1c648da34a4..32039af1404 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -309,7 +309,9 @@ static int alter_cond PROTO((rtx)); #ifndef ADDR_VEC_ALIGN static int final_addr_vec_align PROTO ((rtx)); #endif +#ifdef HAVE_ATTR_length static int align_fuzz PROTO ((rtx, rtx, int, unsigned)); +#endif /* Initialize data in final at the beginning of a compilation. */ @@ -699,7 +701,7 @@ init_insn_lengths () int get_attr_length (insn) - rtx insn; + rtx insn ATTRIBUTE_UNUSED; { #ifdef HAVE_ATTR_length rtx body; @@ -980,7 +982,7 @@ insn_current_reference_address (branch) void shorten_branches (first) - rtx first; + rtx first ATTRIBUTE_UNUSED; { rtx insn; int max_uid; @@ -1694,7 +1696,7 @@ final_start_function (first, file, optimize) static void profile_after_prologue (file) - FILE *file; + FILE *file ATTRIBUTE_UNUSED; { #ifdef FUNCTION_BLOCK_PROFILER if (profile_block_flag) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 64d4e41ff46..6268e3cc5e9 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -914,7 +914,9 @@ exact_real_inverse (mode, r) double d; unsigned short i[4]; }x, t, y; +#ifdef CHECK_FLOAT_VALUE int i; +#endif /* Usually disable if bounds checks are not reliable. */ if ((HOST_FLOAT_FORMAT != TARGET_FLOAT_FORMAT) && !flag_pretend_float) diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index fe075bbc50f..727fd65c897 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -945,7 +945,7 @@ remove_dependence (insn, elem) #ifndef INSN_SCHEDULING void schedule_insns (dump_file) - FILE *dump_file; + FILE *dump_file ATTRIBUTE_UNUSED; { } #else diff --git a/gcc/optabs.c b/gcc/optabs.c index 578b783eb89..bb7c822ffd2 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -37,6 +37,7 @@ Boston, MA 02111-1307, USA. */ #include "recog.h" #include "reload.h" #include "ggc.h" +#include "real.h" /* Each optab contains info on how this target machine can perform a particular operation diff --git a/gcc/real.h b/gcc/real.h index 506a6dd7391..478762f36c7 100644 --- a/gcc/real.h +++ b/gcc/real.h @@ -357,7 +357,7 @@ extern double ldexp (); #ifndef REAL_VALUE_ATOF #if 1 /* Use real.c to convert decimal numbers to binary, ... */ -REAL_VALUE_TYPE ereal_atof (); +extern REAL_VALUE_TYPE ereal_atof PROTO((const char *, enum machine_mode)); #define REAL_VALUE_ATOF(x, s) ereal_atof (x, s) /* Could use ereal_atof here for hexadecimal floats too, but real_hex_to_f is OK and it uses faster native fp arithmetic. */ diff --git a/gcc/resource.c b/gcc/resource.c index 265c12f0768..d89ff505e4a 100644 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */ #include "flags.h" #include "output.h" #include "resource.h" +#include "insn-attr.h" /* This structure is used to record liveness information at the targets or fallthrough insns of branches. We will most likely need the information diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 02a35c25f99..ea33e8d80d0 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -111,8 +111,10 @@ static void sdbout_record_type_name PROTO((tree)); static int plain_type_1 PROTO((tree, int)); static void sdbout_block PROTO((tree)); static void sdbout_syms PROTO((tree)); +#ifdef SDB_ALLOW_FORWARD_REFERENCES static void sdbout_queue_anonymous_type PROTO((tree)); static void sdbout_dequeue_anonymous_types PROTO((void)); +#endif static void sdbout_type PROTO((tree)); static void sdbout_field_types PROTO((tree)); static void sdbout_one_type PROTO((tree)); @@ -337,7 +339,7 @@ static struct sdb_file *current_file; void sdbout_init (asm_file, input_file_name, syms) FILE *asm_file ATTRIBUTE_UNUSED; - char *input_file_name; + char *input_file_name ATTRIBUTE_UNUSED; tree syms ATTRIBUTE_UNUSED; { #ifdef MIPS_DEBUGGING_INFO @@ -1650,7 +1652,7 @@ sdbout_label (insn) void sdbout_start_new_source_file (filename) - char *filename; + char *filename ATTRIBUTE_UNUSED; { #ifdef MIPS_DEBUGGING_INFO struct sdb_file *n = (struct sdb_file *) xmalloc (sizeof *n); diff --git a/gcc/stmt.c b/gcc/stmt.c index 1562ae59186..f0c46c4094f 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2794,7 +2794,9 @@ expand_return (retval) rtx last_insn = 0; rtx result_rtl = DECL_RTL (DECL_RESULT (current_function_decl)); register rtx val = 0; +#ifdef HAVE_return register rtx op0; +#endif tree retval_rhs; int cleanups; diff --git a/gcc/stupid.c b/gcc/stupid.c index a0f328fae20..b1979455c2b 100644 --- a/gcc/stupid.c +++ b/gcc/stupid.c @@ -54,6 +54,7 @@ Boston, MA 02111-1307, USA. */ #include "reload.h" #include "flags.h" #include "toplev.h" +#include "tm_p.h" /* Vector mapping INSN_UIDs to suids. The suids are like uids but increase monotonically always. diff --git a/gcc/tree.c b/gcc/tree.c index b7d251febcd..d46bfa6b115 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1420,7 +1420,7 @@ build_real (type, d) REAL_VALUE_TYPE real_value_from_int_cst (type, i) - tree type, i; + tree type ATTRIBUTE_UNUSED, i; { REAL_VALUE_TYPE d; -- 2.30.2