alpha.c (unicosmk_special_name): Prototype.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 11 Nov 2001 21:20:03 +0000 (21:20 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 11 Nov 2001 21:20:03 +0000 (21:20 +0000)
* alpha.c (unicosmk_special_name): Prototype.
(unicosmk_ssib_name): Delete unused variable.
* alpha/unicosmk.h (common_section, ssib_section): Prototype.
* alpha/vms.h (PREFIX): Undef before defining.
* arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
* i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
controlling usage.  Const-ify.
(alias_number): Delete unused variable.
* m32r/m32r.c (m32r_sched_init): Add missing argument.
(m32r_expand_block_move): Fix uninitialized warnings.
* mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
always true' warnings.
* openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
* sh/sh.c: Include "integrate.h".
(output_far_jump): Fix uninitialized warning.
* final.c (shorten_branches): Avoid automatic aggregate
initialization.
* integrate.c (subst_constants): Likewise.

From-SVN: r46932

12 files changed:
gcc/ChangeLog
gcc/config/alpha/alpha.c
gcc/config/alpha/unicosmk.h
gcc/config/alpha/vms.h
gcc/config/arm/pe.h
gcc/config/i370/i370.c
gcc/config/m32r/m32r.c
gcc/config/mn10300/mn10300.h
gcc/config/openbsd.h
gcc/config/sh/sh.c
gcc/final.c
gcc/integrate.c

index 4d341822f7ba524e0375b5a80e52b1b63c44d1bb..70d51f37ea527da173a1f8bb3db3062f78a2ce91 100644 (file)
@@ -1,3 +1,24 @@
+2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * alpha.c (unicosmk_special_name): Prototype.
+       (unicosmk_ssib_name): Delete unused variable.
+       * alpha/unicosmk.h (common_section, ssib_section): Prototype.
+       * alpha/vms.h (PREFIX): Undef before defining.
+       * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
+       * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
+       controlling usage.  Const-ify.
+       (alias_number): Delete unused variable.
+       * m32r/m32r.c (m32r_sched_init): Add missing argument.
+       (m32r_expand_block_move): Fix uninitialized warnings.
+       * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
+       always true' warnings.
+       * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
+       * sh/sh.c: Include "integrate.h".
+       (output_far_jump): Fix uninitialized warning.
+       * final.c (shorten_branches): Avoid automatic aggregate
+       initialization.
+       * integrate.c (subst_constants): Likewise.
+
 2001-11-11  Kazu Hirata  <kazu@hxi.com>
 
        * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
index f1c72771e747678c2a0168038cf22d62669b3288..e78d6d925ca47399775a7efd0c24bc7a7a431cce 100644 (file)
@@ -8028,7 +8028,7 @@ static void unicosmk_output_dex PARAMS ((FILE *));
 static void unicosmk_output_externs PARAMS ((FILE *));
 static void unicosmk_output_addr_vec PARAMS ((FILE *, rtx));
 static const char *unicosmk_ssib_name PARAMS ((void));
-
+static int unicosmk_special_name PARAMS ((const char *));
 
 /* Define the offset between two registers, one to be eliminated, and the
    other its replacement, at the start of a routine.  */
@@ -8457,7 +8457,6 @@ unicosmk_ssib_name ()
 
   rtx x;
   const char *fnname;
-  char *ssib_name;
   int len;
 
   x = DECL_RTL (cfun->decl);
index 87f9603b3407dd2a2fe76474bdf95238f3aa6ac8..1b2c257eb4e64ff3bc5d8061a1b2ce10549c2475 100644 (file)
@@ -365,6 +365,7 @@ do { fprintf (FILE, "\tbr $1,0\n");                 \
 COMMON_SECTION                 \
 SSIB_SECTION   
 
+extern void common_section PARAMS ((void));
 #define COMMON_SECTION         \
 void                           \
 common_section ()              \
@@ -372,6 +373,7 @@ common_section ()           \
   in_section = in_common;      \
 }
 
+extern void ssib_section PARAMS ((void));
 #define SSIB_SECTION           \
 void                           \
 ssib_section ()                        \
index 506223cb85480f4c8231aadc7fa15f7e0d60a8a1..115fc2f8a4f59ec11f954ff299b89362164f91cc 100644 (file)
@@ -413,6 +413,7 @@ do {                                                                        \
 
 #define DIR_SEPARATOR ']'
 
+#undef PREFIX
 #define PREFIX "GNU_ROOT:"
 
 /* XXX Really? Even with modern CRTL? */
index 3a9ad7cdff593f664b096de5a905a090aa120ecb..4b9c38a1f0b3137452528eb45864a4a15031dc28 100644 (file)
@@ -25,6 +25,7 @@ Boston, MA 02111-1307, USA.  */
 #define ARM_PE_FLAG_CHAR '@'
 
 /* Ensure that @x. will be stripped from the function name.  */
+#undef SUBTARGET_NAME_ENCODING_LENGTHS
 #define SUBTARGET_NAME_ENCODING_LENGTHS  \
   case ARM_PE_FLAG_CHAR: return 3;
 
index bbdcfa653f8bb12cc6f83248c6b55c46eccfa694..16dc9a93d48a0c6fe6493fa14fbbd20cca07a20d 100644 (file)
@@ -101,6 +101,9 @@ static label_node_t * mvs_get_label PARAMS ((int));
 static void i370_label_scan PARAMS ((void));
 static void i370_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
 static void i370_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
+#ifdef LONGEXTERNAL
+static int mvs_hash_alias PARAMS ((const char *));
+#endif
 
 /* ===================================================== */
 /* defines and functions specific to the HLASM assembler */
@@ -135,9 +138,6 @@ alias_node_t;
 /* Alias node list anchor.  */
 static alias_node_t *alias_anchor = 0;
 
-/* Alias number */
-static int alias_number = 0;
-
 /* Define the length of the internal MVS function table.  */
 #define MVS_FUNCTION_TABLE_LENGTH 32
 
@@ -851,9 +851,10 @@ mvs_function_check (name)
 
 /* Generate a hash for a given key. */
 
+#ifdef LONGEXTERNAL
 static int
 mvs_hash_alias (key)
-     char *key;
+     const char *key;
 {
   int h;
   int i;
@@ -864,7 +865,7 @@ mvs_hash_alias (key)
     h = ((h * MVS_SET_SIZE) + key[i]) % MVS_HASH_PRIME;
   return (h);
 }
-
+#endif
 
 /* Add the alias to the current alias list.  */
 
index 9ff0081ede09d39c92bdb406aa24eed2a182f2b0..837fbda988f97084d95c2d202029e6c63da3d20b 100644 (file)
@@ -69,7 +69,7 @@ static void  m32r_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 
 static int    m32r_adjust_cost            PARAMS ((rtx, rtx, rtx, int));
 static int    m32r_adjust_priority PARAMS ((rtx, int));
-static void   m32r_sched_init     PARAMS ((FILE *, int));
+static void   m32r_sched_init     PARAMS ((FILE *, int, int));
 static int    m32r_sched_reorder   PARAMS ((FILE *, int, rtx *, int *, int));
 static int    m32r_variable_issue  PARAMS ((FILE *, int, rtx, int));
 static int    m32r_issue_rate     PARAMS ((void));
@@ -1555,9 +1555,10 @@ m32r_adjust_priority (insn, priority)
 /* Initialize for scheduling a group of instructions.  */
 
 static void
-m32r_sched_init (stream, verbose)
+m32r_sched_init (stream, verbose, max_ready)
      FILE * stream ATTRIBUTE_UNUSED;
      int verbose ATTRIBUTE_UNUSED;
+     int max_ready ATTRIBUTE_UNUSED;
 {
   m32r_sched_odd_word_p = FALSE;
 }
@@ -2774,8 +2775,8 @@ m32r_expand_block_move (operands)
   /* If necessary, generate a loop to handle the bulk of the copy.  */
   if (bytes)
     {
-      rtx label;
-      rtx final_src;
+      rtx label = NULL_RTX;
+      rtx final_src = NULL_RTX;
       rtx at_a_time = GEN_INT (MAX_MOVE_BYTES);
       rtx rounded_total = GEN_INT (bytes);
 
index 4594bb0576105867dc9b6d234b06e92eae56331f..a60aa00860530e7e3189a325d8f80d4481cdb1a4 100644 (file)
@@ -339,7 +339,7 @@ enum reg_class {
 
 #ifndef REG_OK_STRICT
 # define REGNO_IN_RANGE_P(regno,min,max) \
-  (((regno) >= (min) && (regno) <= (max)) || (regno) >= FIRST_PSEUDO_REGISTER)
+  (IN_RANGE ((regno), (min), (max)) || (regno) >= FIRST_PSEUDO_REGISTER)
 #else
 # define REGNO_IN_RANGE_P(regno,min,max) \
   (IN_RANGE ((regno), (min), (max)) \
index 147eec624371711185d13c83b854e6a00aca4284..2c0738f68b213117f408fc6763e3902ba82ea30f 100644 (file)
@@ -140,7 +140,9 @@ Boston, MA 02111-1307, USA.  */
 /* Implicit calls to library routines.  */
 
 /* Use memcpy and memset instead of bcopy and bzero.  */
+#ifndef TARGET_MEM_FUNCTIONS
 #define TARGET_MEM_FUNCTIONS
+#endif
 
 /* Miscellaneous parameters.  */
 
index 0e871d415c3ea430a4bf98e39b7b3f4c11f36641..5d4def82fb83177ff7901b889f5873c060dc2efa 100644 (file)
@@ -37,6 +37,7 @@ Boston, MA 02111-1307, USA.  */
 #include "toplev.h"
 #include "recog.h"
 #include "c-pragma.h"
+#include "integrate.h"
 #include "tm_p.h"
 #include "target.h"
 #include "target-def.h"
@@ -746,7 +747,7 @@ output_far_jump (insn, op)
      rtx op;
 {
   struct { rtx lab, reg, op; } this;
-  rtx braf_base_lab;
+  rtx braf_base_lab = NULL_RTX;
   const char *jump;
   int far;
   int offset = branch_dest (insn) - INSN_ADDRESSES (INSN_UID (insn));
index eac597ed1cf7419771908dd087442ebf506b15b4..351fe017c492e195fc349edb49ce19eb3f5c9e25 100644 (file)
@@ -1425,12 +1425,15 @@ shorten_branches (first)
              rtx rel_lab = XEXP (XEXP (body, 0), 0);
              rtx min_lab = XEXP (XEXP (body, 2), 0);
              rtx max_lab = XEXP (XEXP (body, 3), 0);
-             addr_diff_vec_flags flags = ADDR_DIFF_VEC_FLAGS (body);
              int rel_addr = INSN_ADDRESSES (INSN_UID (rel_lab));
              int min_addr = INSN_ADDRESSES (INSN_UID (min_lab));
              int max_addr = INSN_ADDRESSES (INSN_UID (max_lab));
              rtx prev;
              int rel_align = 0;
+             addr_diff_vec_flags flags;
+
+             /* Avoid automatic aggregate initialization.  */
+             flags = ADDR_DIFF_VEC_FLAGS (body);
 
              /* Try to find a known alignment for rel_lab.  */
              for (prev = rel_lab;
index c8c60b263b91ea44351e3212c8e9944453bd6bdb..4bcfc226c7516edac60f43ded0993c747d367884 100644 (file)
@@ -2693,7 +2693,10 @@ subst_constants (loc, insn, map, memonly)
                new = CONST0_RTX (mode);
              else
                {
-                 REAL_VALUE_TYPE val = FLOAT_STORE_FLAG_VALUE (mode);
+                 REAL_VALUE_TYPE val;
+
+                 /* Avoid automatic aggregate initialization.  */
+                 val = FLOAT_STORE_FLAG_VALUE (mode);
                  new = CONST_DOUBLE_FROM_REAL_VALUE (val, mode);
                }
            }