aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog21
-rw-r--r--gcc/config/alpha/alpha.c3
-rw-r--r--gcc/config/alpha/unicosmk.h2
-rw-r--r--gcc/config/alpha/vms.h1
-rw-r--r--gcc/config/arm/pe.h1
-rw-r--r--gcc/config/i370/i370.c11
-rw-r--r--gcc/config/m32r/m32r.c9
-rw-r--r--gcc/config/mn10300/mn10300.h2
-rw-r--r--gcc/config/openbsd.h2
-rw-r--r--gcc/config/sh/sh.c3
-rw-r--r--gcc/final.c5
-rw-r--r--gcc/integrate.c5
12 files changed, 50 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4d34182..70d51f3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index f1c7277..e78d6d9 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -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);
diff --git a/gcc/config/alpha/unicosmk.h b/gcc/config/alpha/unicosmk.h
index 87f9603..1b2c257 100644
--- a/gcc/config/alpha/unicosmk.h
+++ b/gcc/config/alpha/unicosmk.h
@@ -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 () \
diff --git a/gcc/config/alpha/vms.h b/gcc/config/alpha/vms.h
index 506223c..115fc2f 100644
--- a/gcc/config/alpha/vms.h
+++ b/gcc/config/alpha/vms.h
@@ -413,6 +413,7 @@ do { \
#define DIR_SEPARATOR ']'
+#undef PREFIX
#define PREFIX "GNU_ROOT:"
/* XXX Really? Even with modern CRTL? */
diff --git a/gcc/config/arm/pe.h b/gcc/config/arm/pe.h
index 3a9ad7c..4b9c38a 100644
--- a/gcc/config/arm/pe.h
+++ b/gcc/config/arm/pe.h
@@ -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;
diff --git a/gcc/config/i370/i370.c b/gcc/config/i370/i370.c
index bbdcfa6..16dc9a9 100644
--- a/gcc/config/i370/i370.c
+++ b/gcc/config/i370/i370.c
@@ -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. */
diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c
index 9ff0081..837fbda 100644
--- a/gcc/config/m32r/m32r.c
+++ b/gcc/config/m32r/m32r.c
@@ -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);
diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h
index 4594bb0..a60aa00 100644
--- a/gcc/config/mn10300/mn10300.h
+++ b/gcc/config/mn10300/mn10300.h
@@ -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)) \
diff --git a/gcc/config/openbsd.h b/gcc/config/openbsd.h
index 147eec6..2c0738f 100644
--- a/gcc/config/openbsd.h
+++ b/gcc/config/openbsd.h
@@ -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. */
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 0e871d4..5d4def8 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -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));
diff --git a/gcc/final.c b/gcc/final.c
index eac597e..351fe01 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -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;
diff --git a/gcc/integrate.c b/gcc/integrate.c
index c8c60b2..4bcfc22 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -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);
}
}