Makefile.in (optabs.o): Depend on real.h
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 10 Jan 2000 23:48:03 +0000 (23:48 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 10 Jan 2000 23:48:03 +0000 (23:48 +0000)
* 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

20 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/builtins.c
gcc/c-common.c
gcc/c-lex.c
gcc/ch/ChangeLog
gcc/ch/lex.c
gcc/config/elfos.h
gcc/cp/ChangeLog
gcc/cp/lex.c
gcc/final.c
gcc/fold-const.c
gcc/haifa-sched.c
gcc/optabs.c
gcc/real.h
gcc/resource.c
gcc/sdbout.c
gcc/stmt.c
gcc/stupid.c
gcc/tree.c

index d5bca8abda5c44ca909c7c8f13cdfb3fdf9ba494..3ec9803993f6a746ce12b4f01fb5664cc0051efc 100644 (file)
@@ -1,3 +1,46 @@
+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.
index 4fc389238e095674ca5d92b3a9222124b6549514..f49b65fd6593ffbb0de007ca534203862b5c97f7 100644 (file)
@@ -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 \
index 43e87b19a66dad5820d4d5f3338deee4ffd68ba7..eae9346f244262f56fa841eba5fdc3be63ba2127 100644 (file)
@@ -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));
index f21a68ae9b2e6d711a3f885a66abaf65623d688b..988ed50d360c33204daa710989a224a65fab722f 100644 (file)
@@ -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"
index 612f3f5b0e243bc16a16f622bc47e3d89ee3173e..905310d4f9a9684855612a5eb90f83c31d41cd6e 100644 (file)
@@ -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
index 0a073e3b1c1c47e4ed52c0a5ac1c2e3a0c9d85d8..b88227f545667d03ed5b0c0106330579f64e6273 100644 (file)
@@ -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
index 44029b99d209b1cce9832d2367f9ae7f6aec1e25..c48e1856e8e66d0f03422fb9ce9755142d6c4afc 100644 (file)
@@ -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"
index a3bfcd3e76427e8aed76b6308ee5d22c96fbe8db..8476c2bff2aefe70a0ed102b84ab291226349f9b 100644 (file)
@@ -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." },                     \
index f434ab19bd381b46f6353c4cbac6ef17c08da8dc..8778233ccb3f7445817201c91fa45688391ae706 100644 (file)
@@ -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.
index 01ec8fcb02d9b8f056de99d3669d6bafb9d738b0..237feb2418e217f148ad2a2f0441a50aa4b9975a 100644 (file)
@@ -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"
index 1c648da34a47c199aba958c87aafb497eb5d24b6..32039af1404814bf65dc04795edf411595eb8ed6 100644 (file)
@@ -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
 \f
 /* 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)
index 64d4e41ff462092777c1bc17fe42cb2f1f07b766..6268e3cc5e9cb4eaccefca545438381cc3c9c4d5 100644 (file)
@@ -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)
index fe075bbc50fdd73ec68e1d673a831e68c00449bf..727fd65c8971908b9f5942140e61fe01b1272fab 100644 (file)
@@ -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
index 578b783eb89c03a2095f04474c9ff65ce454af07..bb7c822ffd28d9db257ba998a5c46d07d505443b 100644 (file)
@@ -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
index 506a6dd7391b5d8bdac1fe29d37590e753e4480f..478762f36c7b404d5dbcbe9ea1b9ac19d2cf90cf 100644 (file)
@@ -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.  */
index 265c12f07680559d21e68fe5d767627dd10f8b68..d89ff505e4a56f1e08715202a36260230d7f781e 100644 (file)
@@ -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
index 02a35c25f99d7721f48e88970b0e89843c6eeb7c..ea33e8d80d0911b6cdf505420a9587862c3b55d7 100644 (file)
@@ -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);
index 1562ae5918603deaeeb186b7ff840aa57e908e53..f0c46c4094fd6176db4d29cb1d94e5c088d11d21 100644 (file)
@@ -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;
 
index a0f328fae204e79b2bae13448a4e455a181b218f..b1979455c2ba5b6d7a41ef1e4b3e237f7a447363 100644 (file)
@@ -54,6 +54,7 @@ Boston, MA 02111-1307, USA.  */
 #include "reload.h"
 #include "flags.h"
 #include "toplev.h"
+#include "tm_p.h"
 \f
 /* Vector mapping INSN_UIDs to suids.
    The suids are like uids but increase monotonically always.
index b7d251febcd35d733edd321dfba6f168d3004af2..d46bfa6b1153c673c25238ff79346653007605c9 100644 (file)
@@ -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;