aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/1750a/1750a.c2
-rw-r--r--gcc/config/alpha/alpha.c4
-rw-r--r--gcc/config/arm/arm.c2
-rw-r--r--gcc/config/arm/arm.h1
-rw-r--r--gcc/config/avr/avr.c4
-rw-r--r--gcc/config/darwin.h4
-rw-r--r--gcc/config/i386/i386.c6
-rw-r--r--gcc/config/i386/i386.h3
-rw-r--r--gcc/config/m88k/m88k.c2
-rw-r--r--gcc/config/mips/mips.c4
-rw-r--r--gcc/config/ns32k/ns32k.c2
-rw-r--r--gcc/config/ns32k/ns32k.h1
-rw-r--r--gcc/config/pj/pj.c2
-rw-r--r--gcc/config/rs6000/rs6000.c2
-rw-r--r--gcc/config/sparc/sparc.c4
15 files changed, 19 insertions, 24 deletions
diff --git a/gcc/config/1750a/1750a.c b/gcc/config/1750a/1750a.c
index c1412bf..4856de2 100644
--- a/gcc/config/1750a/1750a.c
+++ b/gcc/config/1750a/1750a.c
@@ -304,7 +304,7 @@ mod_regno_adjust (instr, op)
rtx *op;
{
static char outstr[40];
- const char *r = (!strncmp (instr, "dvr", 3) ? "r" : "");
+ const char *const r = (!strncmp (instr, "dvr", 3) ? "r" : "");
int modregno_gcc = REGNO (op[3]), modregno_1750 = REGNO (op[0]) + 1;
if (modregno_gcc == modregno_1750
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index 9fd33a0..d2d90d9 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -7795,7 +7795,7 @@ alpha_write_one_linkage (node, data)
splay_tree_node node;
void *data;
{
- const char *name = (const char *) node->key;
+ const char *const name = (const char *) node->key;
struct alpha_links *links = (struct alpha_links *) node->value;
FILE *stream = (FILE *) data;
@@ -8498,7 +8498,7 @@ static void
unicosmk_output_default_externs (file)
FILE *file;
{
- static const char *externs[] =
+ static const char *const externs[] =
{ "__T3E_MISMATCH" };
int i;
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 4445583..1ad558e 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -283,7 +283,7 @@ rtx arm_target_insn;
int arm_target_label;
/* The condition codes of the ARM, and the inverse function. */
-const char *const arm_condition_codes[] =
+static const char *const arm_condition_codes[] =
{
"eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc",
"hi", "ls", "ge", "lt", "gt", "le", "al", "nv"
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
index a3cc4f3..aa1c177 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -61,7 +61,6 @@ typedef enum arm_cond_code
arm_cc;
extern arm_cc arm_current_cc;
-extern const char *const arm_condition_codes[];
#define ARM_INVERSE_CONDITION_CODE(X) ((arm_cc) (((int)X) ^ 1))
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index a6cb331..5e9c172 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -2363,7 +2363,7 @@ output_movsisf(insn, operands, l)
if (GET_CODE (src) == CONST_INT)
{
- const char *clr_op0 =
+ const char *const clr_op0 =
AVR_ENHANCED ? (AS1 (clr,%A0) CR_TAB
AS1 (clr,%B0) CR_TAB
AS2 (movw,%C0,%A0))
@@ -4756,7 +4756,7 @@ encode_section_info (decl)
&& TREE_CODE (decl) == VAR_DECL
&& avr_progmem_p (decl))
{
- const char *const dsec = ".progmem.data";
+ static const char *const dsec = ".progmem.data";
DECL_SECTION_NAME (decl) = build_string (strlen (dsec), dsec);
TREE_READONLY (decl) = 1;
}
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 72c689b..54b669a 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -719,7 +719,7 @@ enum machopic_addr_class {
#define GEN_BINDER_NAME_FOR_STUB(BUF,STUB,STUB_LENGTH) \
do { \
- const char *stub_ = (STUB); \
+ const char *const stub_ = (STUB); \
char *buffer_ = (BUF); \
strcpy (buffer_, stub_); \
if (stub_[0] == '"') \
@@ -734,7 +734,7 @@ enum machopic_addr_class {
#define GEN_SYMBOL_NAME_FOR_SYMBOL(BUF,SYMBOL,SYMBOL_LENGTH) \
do { \
- const char *symbol_ = (SYMBOL); \
+ const char *const symbol_ = (SYMBOL); \
char *buffer_ = (BUF); \
if (name_needs_quotes (symbol_) && symbol_[0] != '"') \
{ \
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 81058ac..6caf854 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -361,9 +361,9 @@ static int use_fast_prologue_epilogue;
#define AT_BP(mode) (gen_rtx_MEM ((mode), hard_frame_pointer_rtx))
-const char * const hi_reg_name[] = HI_REGISTER_NAMES;
-const char * const qi_reg_name[] = QI_REGISTER_NAMES;
-const char * const qi_high_reg_name[] = QI_HIGH_REGISTER_NAMES;
+static const char *const hi_reg_name[] = HI_REGISTER_NAMES; /* names for 16 bit regs */
+static const char *const qi_reg_name[] = QI_REGISTER_NAMES; /* names for 8 bit regs (low) */
+static const char *const qi_high_reg_name[] = QI_HIGH_REGISTER_NAMES; /* names for 8 bit regs (high) */
/* Array of the smallest class containing reg number REGNO, indexed by
REGNO. Used by REGNO_REG_CLASS in i386.h. */
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index eb544c7..1a1715e 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -3095,9 +3095,6 @@ extern const char *ix86_branch_cost_string; /* values 1-5: see jump.c */
extern int ix86_regparm; /* ix86_regparm_string as a number */
extern int ix86_preferred_stack_boundary; /* preferred stack boundary alignment in bits */
extern int ix86_branch_cost; /* values 1-5: see jump.c */
-extern const char * const hi_reg_name[]; /* names for 16 bit regs */
-extern const char * const qi_reg_name[]; /* names for 8 bit regs (low) */
-extern const char * const qi_high_reg_name[]; /* names for 8 bit regs (high) */
extern enum reg_class const regclass_map[]; /* smalled class containing REGNO */
extern struct rtx_def *ix86_compare_op0; /* operand 0 for comparisons */
extern struct rtx_def *ix86_compare_op1; /* operand 1 for comparisons */
diff --git a/gcc/config/m88k/m88k.c b/gcc/config/m88k/m88k.c
index 994994b..1de96f2 100644
--- a/gcc/config/m88k/m88k.c
+++ b/gcc/config/m88k/m88k.c
@@ -2407,7 +2407,7 @@ output_function_profiler (file, labelno, name, savep)
{
char label[256];
char dbi[256];
- const char *temp = (savep ? reg_names[2] : reg_names[10]);
+ const char *const temp = (savep ? reg_names[2] : reg_names[10]);
/* Remember to update FUNCTION_PROFILER_LENGTH. */
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 5ac7be1..483cc23 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -9548,7 +9548,7 @@ mips_output_conditional_branch (insn,
would otherwise; that way we skip the annulled instruction
in the delay slot. */
- const char *target
+ const char *const target
= ((mips_branch_likely || length == 16) ? ".+16" : ".+12");
char *c;
@@ -9625,7 +9625,7 @@ mips_output_conditional_branch (insn,
anything. */
/* The target of the reversed branch. */
- const char *target
+ const char *const target
= ((mips_branch_likely || length == 20) ? ".+20" : ".+16");
const char *at_register = mips_reg_names[ASSEMBLER_SCRATCH_REGNUM];
const char *gp_register = mips_reg_names[PIC_OFFSET_TABLE_REGNUM];
diff --git a/gcc/config/ns32k/ns32k.c b/gcc/config/ns32k/ns32k.c
index 9ad3b0c..b6bd0da 100644
--- a/gcc/config/ns32k/ns32k.c
+++ b/gcc/config/ns32k/ns32k.c
@@ -59,7 +59,7 @@ enum reg_class regclass_map[FIRST_PSEUDO_REGISTER] =
FRAME_POINTER_REG, STACK_POINTER_REG
};
-const char *const ns32k_out_reg_names[] = OUTPUT_REGISTER_NAMES;
+static const char *const ns32k_out_reg_names[] = OUTPUT_REGISTER_NAMES;
static rtx gen_indexed_expr PARAMS ((rtx, rtx, rtx));
static const char *singlemove_string PARAMS ((rtx *));
diff --git a/gcc/config/ns32k/ns32k.h b/gcc/config/ns32k/ns32k.h
index 58937d1..0037920 100644
--- a/gcc/config/ns32k/ns32k.h
+++ b/gcc/config/ns32k/ns32k.h
@@ -1441,7 +1441,6 @@ do { \
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) print_operand_address(FILE, ADDR)
extern unsigned int ns32k_reg_class_contents[N_REG_CLASSES][1];
-extern const char *const ns32k_out_reg_names[];
extern enum reg_class regclass_map[]; /* smallest class containing REGNO */
/*
diff --git a/gcc/config/pj/pj.c b/gcc/config/pj/pj.c
index 18525ce..6536627 100644
--- a/gcc/config/pj/pj.c
+++ b/gcc/config/pj/pj.c
@@ -400,7 +400,7 @@ pj_output_rval (op, mode, outer_op)
}
else if (tab && tab->handlers[mode].insn_code != CODE_FOR_nothing)
{
- const char *template =
+ const char *const template =
(const char *) insn_data[tab->handlers[mode].insn_code].output;
if (code == NEG)
pj_printf (template, 0, XEXP (op, 0));
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 896842c..0fc0446 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -8616,7 +8616,7 @@ output_call (insn, call_dest, operand_number)
#define GEN_LOCAL_LABEL_FOR_SYMBOL(BUF,SYMBOL,LENGTH,N) \
do { \
- const char *symbol_ = (SYMBOL); \
+ const char *const symbol_ = (SYMBOL); \
char *buffer_ = (BUF); \
if (symbol_[0] == '"') \
{ \
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index 3b11a3f..27cd5b3 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -6702,7 +6702,7 @@ sparc_flat_function_prologue (file, size)
{
unsigned int reg_offset = current_frame_info.reg_offset;
const char *const fp_str = reg_names[FRAME_POINTER_REGNUM];
- const char *const t1_str = "%g1";
+ static const char *const t1_str = "%g1";
/* Things get a little tricky if local variables take up more than ~4096
bytes and outgoing arguments take up more than ~4096 bytes. When that
@@ -6887,7 +6887,7 @@ sparc_flat_function_epilogue (file, size)
unsigned HOST_WIDE_INT size1;
const char *const sp_str = reg_names[STACK_POINTER_REGNUM];
const char *const fp_str = reg_names[FRAME_POINTER_REGNUM];
- const char *const t1_str = "%g1";
+ static const char *const t1_str = "%g1";
/* In the reload sequence, we don't need to fill the load delay
slots for most of the loads, also see if we can fill the final