diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-01-10 23:48:03 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-01-10 23:48:03 +0000 |
commit | 7bdb32b97ef4687f7cbaad717130a78aa2a86a2b (patch) | |
tree | a7172a6e33e902401e82daf343d887ad9029d032 /gcc | |
parent | 3d2cfac61b57d399e5d452b5e7911c8b55c42088 (diff) | |
download | gcc-7bdb32b97ef4687f7cbaad717130a78aa2a86a2b.zip gcc-7bdb32b97ef4687f7cbaad717130a78aa2a86a2b.tar.gz gcc-7bdb32b97ef4687f7cbaad717130a78aa2a86a2b.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 43 | ||||
-rw-r--r-- | gcc/Makefile.in | 5 | ||||
-rw-r--r-- | gcc/builtins.c | 2 | ||||
-rw-r--r-- | gcc/c-common.c | 1 | ||||
-rw-r--r-- | gcc/c-lex.c | 1 | ||||
-rw-r--r-- | gcc/ch/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ch/lex.c | 1 | ||||
-rw-r--r-- | gcc/config/elfos.h | 6 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/lex.c | 1 | ||||
-rw-r--r-- | gcc/final.c | 8 | ||||
-rw-r--r-- | gcc/fold-const.c | 2 | ||||
-rw-r--r-- | gcc/haifa-sched.c | 2 | ||||
-rw-r--r-- | gcc/optabs.c | 1 | ||||
-rw-r--r-- | gcc/real.h | 2 | ||||
-rw-r--r-- | gcc/resource.c | 1 | ||||
-rw-r--r-- | gcc/sdbout.c | 6 | ||||
-rw-r--r-- | gcc/stmt.c | 2 | ||||
-rw-r--r-- | gcc/stupid.c | 1 | ||||
-rw-r--r-- | gcc/tree.c | 2 |
20 files changed, 82 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5bca8a..3ec9803 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,48 @@ 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + * 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 <ghazi@caip.rutgers.edu> + * i960-protos.h: New file. * i960.c: Include tm_p.h. Add static prototypes. Fix compile diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 4fc3892..f49b65f 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 43e87b1..eae9346 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 f21a68a..988ed50 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 612f3f5..905310d 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 0a073e3..b88227f 100644 --- a/gcc/ch/ChangeLog +++ b/gcc/ch/ChangeLog @@ -1,3 +1,7 @@ +2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * lex.c: Include tm_p.h. + 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * actions.c (update_else_range_for_int_const): Initialize diff --git a/gcc/ch/lex.c b/gcc/ch/lex.c index 44029b9..c48e185 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 a3bfcd3e..8476c2b 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 f434ab1..8778233 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * lex.c: Include tm_p.h. + 2000-01-07 Nathan Sidwell <sidwell@codesourcery.com> * lang-specs.h (__GXX_ABI_VERSION): New preprocessor macro. diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 01ec8fc..237feb2 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 1c648da..32039af 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 64d4e41..6268e3c 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 fe075bb..727fd65 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 578b783..bb7c822 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 @@ -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 265c12f..d89ff50 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 02a35c2..ea33e8d 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); @@ -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 a0f328f..b197945 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. @@ -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; |