summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-04 02:12:14 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-04 02:12:14 +0000
commitfeb9af9f2319222202f04932130518208c00fd8b (patch)
treeef188b8913b20fe3ed8ab98dfb164f11cafa7d74 /gcc/config
parenta3130b6cafb8561f25255c77062ef4de6c982ae9 (diff)
downloadgcc-feb9af9f2319222202f04932130518208c00fd8b.tar.gz
* 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
(ASM_OUTPUT_ASCII): Avoid signed/unsigned warning. * c4x.h (INIT_SECTION_FUNCTION): Add prototype. (ASM_FILE_START): Const-ify. (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format specifier warning. * c4x.md: Don't use the 'U' integer suffix. * clipper.md (clipper_movstr): Delete declaration. * d30v-protos.h (d30v_move_2words): Const-ify. (debug_stack_info): Add prototype. * d30v.c: Include "integrate.h". (d30v_function_arg_boundary, d30v_function_arg, d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid signed/unsigned warnings. (d30v_print_operand_memory_reference, d30v_move_2words): Const-ify. * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript. * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype. * fr30.md: Const-ify. * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype. * i370.c (i370_label_scan, mvs_get_label): Make definition static. (mvs_get_label_page): Hide unused static function. * i860.c (current_function_original_name): Const-ify. * i860/sysv3.h (current_function_original_name): Likewise. * i860/sysv4.h (current_function_original_name): Likewise. * i960.md: Add default case in switches. Remove unused variable. * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining. * m32r.md: Const-ify. * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify. * m68hc11.c: Include "reload.h". (static_chain_reg, print_options, m68hc11_asm_file_start): Const-ify. * m68hc11.md: Delete unused variable. Const-ify. Add parens around & in comparison. * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining. * mn10200.c (shift_mode): Remove trailing comma. * mn10300-protos.h (output_tst): Const-ify. * mn10300.c (output_tst): Likewise. * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings. * pa-protos.h (output_ascii): Use regular char *, not unsigned. * pa.c (output_ascii): Likewise. * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype. * pdp11.md (expand_unop): Delete declarations. * pj-protos.h (pj_output_addsi3): Const-ify. * pj.c (pj_output_push_int, pj_output_load, pj_output_inc, pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond, unique_src_operand): Add prototypes. (pj_output_store_into_lval): Make definition static. (pj_function_incoming_arg): Don't use unary plus. (pj_output_addsi3): Const-ify. * romp.md (get_symref): Delete declarations. * v850-c.c (mark_current_function_as_interrupt): Don't return value from void function. * v850.c: Include "integrate.h". * v850.h (ASM_OUTPUT_LABELREF): Const-ify. * vax-protos.h (const_section): Add prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46755 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/1750a/1750a.h3
-rw-r--r--gcc/config/c4x/c4x.h9
-rw-r--r--gcc/config/c4x/c4x.md2
-rw-r--r--gcc/config/clipper/clipper.md1
-rw-r--r--gcc/config/d30v/d30v-protos.h3
-rw-r--r--gcc/config/d30v/d30v.c13
-rw-r--r--gcc/config/d30v/d30v.h2
-rw-r--r--gcc/config/fr30/fr30.c3
-rw-r--r--gcc/config/fr30/fr30.md8
-rw-r--r--gcc/config/h8300/h8300.h1
-rw-r--r--gcc/config/i370/i370.c6
-rw-r--r--gcc/config/i860/i860.c2
-rw-r--r--gcc/config/i860/sysv3.h2
-rw-r--r--gcc/config/i860/sysv4.h2
-rw-r--r--gcc/config/i960/i960.md31
-rw-r--r--gcc/config/i960/vx960-coff.h1
-rw-r--r--gcc/config/m32r/m32r.md4
-rw-r--r--gcc/config/m68hc11/m68hc11-protos.h2
-rw-r--r--gcc/config/m68hc11/m68hc11.c7
-rw-r--r--gcc/config/m68hc11/m68hc11.md12
-rw-r--r--gcc/config/mcore/mcore.h1
-rw-r--r--gcc/config/mn10200/mn10200.c2
-rw-r--r--gcc/config/mn10300/mn10300-protos.h2
-rw-r--r--gcc/config/mn10300/mn10300.c2
-rw-r--r--gcc/config/pa/long_double.h8
-rw-r--r--gcc/config/pa/pa-protos.h2
-rw-r--r--gcc/config/pa/pa.c2
-rw-r--r--gcc/config/pa/som.h1
-rw-r--r--gcc/config/pdp11/pdp11.md3
-rw-r--r--gcc/config/pj/pj-protos.h2
-rw-r--r--gcc/config/pj/pj.c14
-rw-r--r--gcc/config/romp/romp.md2
-rw-r--r--gcc/config/v850/v850-c.c4
-rw-r--r--gcc/config/v850/v850.c1
-rw-r--r--gcc/config/v850/v850.h2
-rw-r--r--gcc/config/vax/vax-protos.h1
36 files changed, 104 insertions, 59 deletions
diff --git a/gcc/config/1750a/1750a.h b/gcc/config/1750a/1750a.h
index 07af4798b15..e9e51e9f382 100644
--- a/gcc/config/1750a/1750a.h
+++ b/gcc/config/1750a/1750a.h
@@ -917,6 +917,7 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA
#define EXTRA_SECTIONS in_readonly_data
#define EXTRA_SECTION_FUNCTIONS \
+ extern void const_section PARAMS ((void)); \
void const_section() \
{ \
fprintf(asm_out_file,"\tkonst\n"); \
@@ -1105,7 +1106,7 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA
if (label_pending) \
label_pending = 0; \
datalbl[datalbl_ndx].size += LEN; \
- for (i = 0; i < LEN; i++) { \
+ for (i = 0; i < (int) LEN; i++) { \
if ((i % 15) == 0) { \
if (i != 0) \
fprintf(FILE,"\n"); \
diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h
index 202b4c065c7..8b5025c536e 100644
--- a/gcc/config/c4x/c4x.h
+++ b/gcc/config/c4x/c4x.h
@@ -1984,6 +1984,7 @@ if (REG_P (OP1) && ! REG_P (OP0)) \
FINI_SECTION_FUNCTION
#define INIT_SECTION_FUNCTION \
+extern void init_section PARAMS ((void)); \
void \
init_section () \
{ \
@@ -2096,8 +2097,8 @@ const_section () \
fprintf (FILE, "\t.file\t"); \
if (TARGET_TI) \
{ \
- char *p; \
- char *after_dir = main_input_filename; \
+ const char *p; \
+ const char *after_dir = main_input_filename; \
for (p = main_input_filename; *p; p++) \
if (*p == '/') \
after_dir = p + 1; \
@@ -2122,7 +2123,7 @@ const_section () \
REAL_VALUE_TO_TARGET_SINGLE (VALUE, l); \
REAL_VALUE_TO_DECIMAL (VALUE, "%20lf", str); \
if (sizeof (int) == sizeof (long)) \
- fprintf (FILE, "\t.word\t0%08xh\t; %s\n", l, str);\
+ fprintf (FILE, "\t.word\t0%08xh\t; %s\n", (int) l, str);\
else \
fprintf (FILE, "\t.word\t0%08lxh\t; %s\n", l, str);\
} while (0);
@@ -2144,7 +2145,7 @@ const_section () \
l[1] = (l[0] << 8) | ((l[1] >> 24) & 0xff); \
if (sizeof (int) == sizeof (long)) \
fprintf (FILE, "\t.word\t0%08xh\t; %s\n\t.word\t0%08xh\n", \
- l[0], str, l[1]); \
+ (int) l[0], str, (int) l[1]); \
else \
fprintf (FILE, "\t.word\t0%08lxh\t; %s\n\t.word\t0%08lxh\n", \
l[0], str, l[1]); \
diff --git a/gcc/config/c4x/c4x.md b/gcc/config/c4x/c4x.md
index d6493fe41a0..c8aefa90adf 100644
--- a/gcc/config/c4x/c4x.md
+++ b/gcc/config/c4x/c4x.md
@@ -5614,7 +5614,7 @@
(use (label_ref (match_operand 4 "" "")))]
""
"if (! TARGET_LOOP_UNSIGNED
- && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > (1U << 31))
+ && (unsigned HOST_WIDE_INT) INTVAL (operands[2]) > ((unsigned) 1 << 31))
FAIL;
if (INTVAL (operands[3]) > 1 || ! TARGET_RPTB)
{
diff --git a/gcc/config/clipper/clipper.md b/gcc/config/clipper/clipper.md
index 2d2a504d6b8..b6906fa5526 100644
--- a/gcc/config/clipper/clipper.md
+++ b/gcc/config/clipper/clipper.md
@@ -555,7 +555,6 @@
""
"*
{
- extern void clipper_movstr ();
clipper_movstr (operands);
return \"\";
}"
diff --git a/gcc/config/d30v/d30v-protos.h b/gcc/config/d30v/d30v-protos.h
index 0dfa8f1d141..8beaa7aea99 100644
--- a/gcc/config/d30v/d30v-protos.h
+++ b/gcc/config/d30v/d30v-protos.h
@@ -126,12 +126,13 @@ extern rtx d30v_legitimize_address PARAMS ((rtx, rtx,
enum machine_mode, int));
extern int d30v_mode_dependent_address_p PARAMS ((rtx));
extern rtx d30v_emit_comparison PARAMS ((int, rtx, rtx, rtx));
-extern char *d30v_move_2words PARAMS ((rtx *, rtx));
+extern const char *d30v_move_2words PARAMS ((rtx *, rtx));
extern int d30v_emit_cond_move PARAMS ((rtx, rtx, rtx, rtx));
extern void d30v_machine_dependent_reorg PARAMS ((rtx));
extern rtx d30v_return_addr PARAMS ((void));
#endif
extern void d30v_init_expanders PARAMS ((void));
+extern void debug_stack_info PARAMS ((d30v_stack_t *));
/* External variables referenced */
diff --git a/gcc/config/d30v/d30v.c b/gcc/config/d30v/d30v.c
index 5d3d7cb1e16..83b7e0ca988 100644
--- a/gcc/config/d30v/d30v.c
+++ b/gcc/config/d30v/d30v.c
@@ -38,6 +38,7 @@
#include "except.h"
#include "function.h"
#include "toplev.h"
+#include "integrate.h"
#include "ggc.h"
#include "target.h"
#include "target-def.h"
@@ -1952,7 +1953,7 @@ d30v_function_arg_boundary (mode, type)
{
int size = ((mode == BLKmode && type)
? int_size_in_bytes (type)
- : GET_MODE_SIZE (mode));
+ : (int) GET_MODE_SIZE (mode));
return (size > UNITS_PER_WORD) ? 2*UNITS_PER_WORD : UNITS_PER_WORD;
}
@@ -1997,7 +1998,7 @@ d30v_function_arg (cum, mode, type, named, incoming)
{
int size = ((mode == BLKmode && type)
? int_size_in_bytes (type)
- : GET_MODE_SIZE (mode));
+ : (int) GET_MODE_SIZE (mode));
int adjust = (size > UNITS_PER_WORD && (*cum & 1) != 0);
rtx ret;
@@ -2046,7 +2047,7 @@ d30v_function_arg_partial_nregs (cum, mode, type, named)
{
int bytes = ((mode == BLKmode)
? int_size_in_bytes (type)
- : GET_MODE_SIZE (mode));
+ : (int) GET_MODE_SIZE (mode));
int words = (bytes + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
int adjust = (bytes > UNITS_PER_WORD && (*cum & 1) != 0);
int arg_num = *cum + adjust;
@@ -2109,7 +2110,7 @@ d30v_function_arg_advance (cum, mode, type, named)
{
int bytes = ((mode == BLKmode)
? int_size_in_bytes (type)
- : GET_MODE_SIZE (mode));
+ : (int) GET_MODE_SIZE (mode));
int words = D30V_ALIGN (bytes, UNITS_PER_WORD) / UNITS_PER_WORD;
int adjust = (bytes > UNITS_PER_WORD && (*cum & 1) != 0);
@@ -2719,7 +2720,7 @@ d30v_print_operand_memory_reference (stream, x)
else
{
- char *suffix = "";
+ const char *suffix = "";
int offset0 = 0;
if (GET_CODE (x0) == SUBREG)
@@ -3366,7 +3367,7 @@ d30v_emit_comparison (test_int, result, arg1, arg2)
/* Return appropriate code to move 2 words. Since DImode registers must start
on even register numbers, there is no possibility of overlap. */
-char *
+const char *
d30v_move_2words (operands, insn)
rtx operands[];
rtx insn;
diff --git a/gcc/config/d30v/d30v.h b/gcc/config/d30v/d30v.h
index 783455fe6b9..841105d4540 100644
--- a/gcc/config/d30v/d30v.h
+++ b/gcc/config/d30v/d30v.h
@@ -1534,7 +1534,7 @@ extern enum reg_class regno_reg_class[];
'g', 'i', 'm', 'n', 'o', 'p', 'r', 's' */
extern enum reg_class reg_class_from_letter[];
-#define REG_CLASS_FROM_LETTER(CHAR) reg_class_from_letter[ CHAR ]
+#define REG_CLASS_FROM_LETTER(CHAR) reg_class_from_letter[(unsigned char)(CHAR)]
/* A C expression which is nonzero if register number NUM is suitable for use
as a base register in operand addresses. It may be either a suitable hard
diff --git a/gcc/config/fr30/fr30.c b/gcc/config/fr30/fr30.c
index 275efcd8dcc..1a6cb31a6ab 100644
--- a/gcc/config/fr30/fr30.c
+++ b/gcc/config/fr30/fr30.c
@@ -118,6 +118,9 @@ static struct fr30_frame_info current_frame_info;
/* Zero structure to initialize current_frame_info. */
static struct fr30_frame_info zero_frame_info;
+static rtx fr30_pass_by_reference PARAMS ((tree, tree));
+static rtx fr30_pass_by_value PARAMS ((tree, tree));
+
#define FRAME_POINTER_MASK (1 << (FRAME_POINTER_REGNUM))
#define RETURN_POINTER_MASK (1 << (RETURN_POINTER_REGNUM))
diff --git a/gcc/config/fr30/fr30.md b/gcc/config/fr30/fr30.md
index 18621e49282..6bdfa48f815 100644
--- a/gcc/config/fr30/fr30.md
+++ b/gcc/config/fr30/fr30.md
@@ -568,7 +568,7 @@
""
"*
{
- char * ldi_instr;
+ const char * ldi_instr;
const char * tmp_reg;
static char buffer[100];
REAL_VALUE_TYPE d;
@@ -1189,7 +1189,7 @@
{
static char buffer [100];
const char * tmp_reg;
- char * ldi_insn;
+ const char * ldi_insn;
tmp_reg = reg_names [COMPILER_SCRATCH_REGISTER];
@@ -1243,7 +1243,7 @@
{
static char buffer [100];
const char * tmp_reg;
- char * ldi_insn;
+ const char * ldi_insn;
tmp_reg = reg_names [COMPILER_SCRATCH_REGISTER];
@@ -1315,7 +1315,7 @@
{
static char buffer [100];
const char * tmp_reg;
- char * ldi_insn;
+ const char * ldi_insn;
tmp_reg = reg_names [COMPILER_SCRATCH_REGISTER];
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index 1f2e077a85c..b7802dc1a1e 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -1104,6 +1104,7 @@ struct cum_arg
#define EXTRA_SECTIONS in_readonly_data
#define EXTRA_SECTION_FUNCTIONS \
+extern void readonly_data PARAMS ((void)); \
void \
readonly_data () \
{ \
diff --git a/gcc/config/i370/i370.c b/gcc/config/i370/i370.c
index 1547da2eacb..bbdcfa653f8 100644
--- a/gcc/config/i370/i370.c
+++ b/gcc/config/i370/i370.c
@@ -411,7 +411,7 @@ i370_short_branch (insn)
if (addr > lp -> label_last_ref) lp->label_last_ref = addr; \
}
-void
+static void
i370_label_scan ()
{
rtx insn;
@@ -590,7 +590,7 @@ check_label_emit ()
allocated from memory.
ID is the label number of the label being added to the list. */
-label_node_t *
+static label_node_t *
mvs_get_label (id)
int id;
{
@@ -702,6 +702,7 @@ mvs_check_label (id)
/* Get the page on which the label sits. This will be used to
determine is a register reload is really needed. */
+#if 0
int
mvs_get_label_page(int id)
{
@@ -714,6 +715,7 @@ mvs_get_label_page(int id)
}
return -1;
}
+#endif
/* The label list for the current page freed by linking the list onto the free
label element chain. */
diff --git a/gcc/config/i860/i860.c b/gcc/config/i860/i860.c
index 26a82f19384..5b70d5a7733 100644
--- a/gcc/config/i860/i860.c
+++ b/gcc/config/i860/i860.c
@@ -1663,7 +1663,7 @@ sfmode_constant_to_ulong (x)
extern char call_used_regs[];
-char *current_function_original_name;
+const char *current_function_original_name;
static int must_preserve_r1;
static unsigned must_preserve_bytes;
diff --git a/gcc/config/i860/sysv3.h b/gcc/config/i860/sysv3.h
index 5380aa2b2b3..6f82d6e30d0 100644
--- a/gcc/config/i860/sysv3.h
+++ b/gcc/config/i860/sysv3.h
@@ -53,7 +53,7 @@ Boston, MA 02111-1307, USA. */
/* Output the special word the System V SDB wants to see just before
the first word of each function's prologue code. */
-extern char *current_function_original_name;
+extern const char *current_function_original_name;
/* This special macro is used to output a magic word just before the
first word of each function. On some versions of UNIX running on
diff --git a/gcc/config/i860/sysv4.h b/gcc/config/i860/sysv4.h
index c92c2a99fbe..0b54e3a2e74 100644
--- a/gcc/config/i860/sysv4.h
+++ b/gcc/config/i860/sysv4.h
@@ -119,7 +119,7 @@ Boston, MA 02111-1307, USA. */
/* Output the special word the svr4 SDB wants to see just before
the first word of each function's prologue code. */
-extern char *current_function_original_name;
+extern const char *current_function_original_name;
/* This special macro is used to output a magic word just before the
first word of each function. On some versions of UNIX running on
diff --git a/gcc/config/i960/i960.md b/gcc/config/i960/i960.md
index 68e8fd30e00..80e4efaed62 100644
--- a/gcc/config/i960/i960.md
+++ b/gcc/config/i960/i960.md
@@ -632,6 +632,8 @@
if (operands[1] == const0_rtx)
return \"st g14,%0\";
return \"st %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,address,load,store")
@@ -665,6 +667,8 @@
return \"ld %1,%0\";
case 3:
return \"st %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,address,load,store")
@@ -715,6 +719,8 @@
if (operands[1] == const0_rtx)
return \"stos g14,%0\";
return \"stos %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,misc,load,store")
@@ -749,6 +755,8 @@
return \"ldos %1,%0\";
case 3:
return \"stos %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,misc,load,store")
@@ -796,6 +804,8 @@
if (operands[1] == const0_rtx)
return \"stob g14,%0\";
return \"stob %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,misc,load,store")
@@ -830,6 +840,8 @@
return \"ldob %1,%0\";
case 3:
return \"stob %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,misc,load,store")
@@ -869,6 +881,8 @@
return i960_output_ldconst (operands[0], operands[1]);
case 5:
return i960_output_move_double_zero (operands[0]);
+ default:
+ abort();
}
}"
[(set_attr "type" "move,move,load,load,store,store")])
@@ -894,6 +908,8 @@
return i960_output_move_double (operands[0], operands[1]);
case 2:
return i960_output_ldconst (operands[0], operands[1]);
+ default:
+ abort();
}
}"
[(set_attr "type" "move,move,load,load,store")])
@@ -948,6 +964,8 @@
return i960_output_ldconst (operands[0], operands[1]);
case 5:
return i960_output_move_quad_zero (operands[0]);
+ default:
+ abort();
}
}"
[(set_attr "type" "move,move,load,load,store,store")])
@@ -973,6 +991,8 @@
return i960_output_move_quad (operands[0], operands[1]);
case 2:
return i960_output_ldconst (operands[0], operands[1]);
+ default:
+ abort();
}
}"
[(set_attr "type" "move,move,load,load,store")])
@@ -1085,6 +1105,8 @@
case 5:
operands[1] = adjust_address (operands[0], VOIDmode, 4);
return \"st g14,%0\;st g14,%1\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,move,load,fpload,fpstore,fpstore")])
@@ -1115,6 +1137,8 @@
return \"ldl %1,%0\";
case 4:
return \"stl %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,move,load,fpload,fpstore")])
@@ -1158,6 +1182,8 @@
if (operands[1] == CONST0_RTX (SFmode))
return \"st g14,%0\";
return \"st %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,move,load,fpload,fpstore")])
@@ -1188,6 +1214,8 @@
return \"ld %1,%0\";
case 4:
return \"st %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,move,load,fpload,fpstore")])
@@ -2099,6 +2127,8 @@
return \"ldt %1,%0\";
case 4:
return \"stt %1,%0\";
+ default:
+ abort();
}
}"
[(set_attr "type" "move,move,load,fpload,fpstore")])
@@ -2353,7 +2383,6 @@
rtx chain = operands[0];
rtx handler = operands[1];
rtx stack = operands[2];
- rtx label = operands[3];
/* We must restore the stack pointer, frame pointer, previous frame
pointer and the return instruction pointer. Since the ret
diff --git a/gcc/config/i960/vx960-coff.h b/gcc/config/i960/vx960-coff.h
index 157ee2612a8..76352582671 100644
--- a/gcc/config/i960/vx960-coff.h
+++ b/gcc/config/i960/vx960-coff.h
@@ -21,6 +21,7 @@ Boston, MA 02111-1307, USA. */
/* This file just exists to give specs for the 960 running on VxWorks.
VxWorks does all the library stuff itself. */
+#undef MULTILIB_DEFAULTS
#define MULTILIB_DEFAULTS { "msoft-float" }
#undef LIB_SPEC
diff --git a/gcc/config/m32r/m32r.md b/gcc/config/m32r/m32r.md
index e692b2c6012..5b8bac93694 100644
--- a/gcc/config/m32r/m32r.md
+++ b/gcc/config/m32r/m32r.md
@@ -1448,7 +1448,7 @@
""
"*
{
- char *br,*invbr;
+ const char *br,*invbr;
char asmtext[40];
switch (GET_CODE (operands[1]))
@@ -1495,7 +1495,7 @@
""
"*
{
- char *br,*invbr;
+ const char *br,*invbr;
char asmtext[40];
switch (GET_CODE (operands[1]))
diff --git a/gcc/config/m68hc11/m68hc11-protos.h b/gcc/config/m68hc11/m68hc11-protos.h
index af265e88920..e775234eb54 100644
--- a/gcc/config/m68hc11/m68hc11-protos.h
+++ b/gcc/config/m68hc11/m68hc11-protos.h
@@ -34,7 +34,7 @@ extern int m68hc11_function_block_profiler PARAMS((FILE*,int));
extern int m68hc11_block_profiler PARAMS((FILE*,int));
-extern void m68hc11_asm_file_start PARAMS((FILE*, char*));
+extern void m68hc11_asm_file_start PARAMS((FILE*, const char*));
#ifdef TREE_CODE
extern void m68hc11_function_arg_advance PARAMS((CUMULATIVE_ARGS*,
diff --git a/gcc/config/m68hc11/m68hc11.c b/gcc/config/m68hc11/m68hc11.c
index b60ccc24137..00d27e025a4 100644
--- a/gcc/config/m68hc11/m68hc11.c
+++ b/gcc/config/m68hc11/m68hc11.c
@@ -52,6 +52,7 @@ Note:
#include "basic-block.h"
#include "function.h"
#include "ggc.h"
+#include "reload.h"
#include "target.h"
#include "target-def.h"
@@ -1095,7 +1096,7 @@ m68hc11_initialize_trampoline (tramp, fnaddr, cxt)
rtx fnaddr;
rtx cxt;
{
- char *static_chain_reg = reg_names[STATIC_CHAIN_REGNUM];
+ const char *static_chain_reg = reg_names[STATIC_CHAIN_REGNUM];
/* Skip the '*'. */
if (*static_chain_reg == '*')
@@ -5216,7 +5217,7 @@ static void
print_options (out)
FILE *out;
{
- char *a_time;
+ const char *a_time;
long c_time;
int i;
extern int save_argc;
@@ -5246,7 +5247,7 @@ print_options (out)
void
m68hc11_asm_file_start (out, main_file)
FILE *out;
- char *main_file;
+ const char *main_file;
{
fprintf (out, ";;;-----------------------------------------\n");
fprintf (out, ";;; Start MC68HC11 gcc assembly output\n");
diff --git a/gcc/config/m68hc11/m68hc11.md b/gcc/config/m68hc11/m68hc11.md
index c1b80f53fb0..10886d28997 100644
--- a/gcc/config/m68hc11/m68hc11.md
+++ b/gcc/config/m68hc11/m68hc11.md
@@ -1338,8 +1338,6 @@
""
"*
{
- rtx ops[2];
-
if (A_REG_P (operands[0]))
return \"#\";
@@ -1919,10 +1917,10 @@
"*
{
rtx ops[3];
- char* add_insn;
- char* inc_insn;
- char* incb_mem;
- char* inch_mem;
+ const char* add_insn;
+ const char* inc_insn;
+ const char* incb_mem;
+ const char* inch_mem;
HOST_WIDE_INT val;
if (which_alternative > 2)
@@ -6148,7 +6146,7 @@
output_asm_insn (\"ldd\\t%2\", operands);
if ((INTVAL (operands[1]) & 0x0ff00) == 0x100)
output_asm_insn (\"inca\", operands);
- else if (INTVAL (operands[1]) & 0x0ff00 == 0xff00)
+ else if ((INTVAL (operands[1]) & 0x0ff00) == 0xff00)
output_asm_insn (\"deca\", operands);
else if (INTVAL (operands[1]) != 0)
output_asm_insn (\"adda\\t%h1\", operands);
diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h
index d7b611bcd21..1fd73a8bf7f 100644
--- a/gcc/config/mcore/mcore.h
+++ b/gcc/config/mcore/mcore.h
@@ -1111,6 +1111,7 @@ switch_to_section (section, decl) \
}
/* Switch into a generic section. */
+#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION mcore_asm_named_section
/* This is how to output an insn to push a register on the stack.
diff --git a/gcc/config/mn10200/mn10200.c b/gcc/config/mn10200/mn10200.c
index 45432ac2a2c..5f286e5ca63 100644
--- a/gcc/config/mn10200/mn10200.c
+++ b/gcc/config/mn10200/mn10200.c
@@ -1029,7 +1029,7 @@ enum shift_type
enum shift_mode
{
- HIshift,
+ HIshift
};
/* For single bit shift insns, record assembler and what bits of the
diff --git a/gcc/config/mn10300/mn10300-protos.h b/gcc/config/mn10300/mn10300-protos.h
index ee4a443cc03..abd17ed45b2 100644
--- a/gcc/config/mn10300/mn10300-protos.h
+++ b/gcc/config/mn10300/mn10300-protos.h
@@ -34,7 +34,7 @@ extern void mn10300_gen_multiple_store PARAMS ((int));
extern void notice_update_cc PARAMS ((rtx, rtx));
extern enum reg_class secondary_reload_class PARAMS ((enum reg_class,
enum machine_mode, rtx));
-extern char *output_tst PARAMS ((rtx, rtx));
+extern const char *output_tst PARAMS ((rtx, rtx));
extern int store_multiple_operation PARAMS ((rtx, enum machine_mode));
extern int symbolic_operand PARAMS ((rtx, enum machine_mode));
extern int call_address_operand PARAMS ((rtx, enum machine_mode));
diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c
index 66c8e8d3c8a..23fe80ff674 100644
--- a/gcc/config/mn10300/mn10300.c
+++ b/gcc/config/mn10300/mn10300.c
@@ -1029,7 +1029,7 @@ function_arg_partial_nregs (cum, mode, type, named)
}
/* Output a tst insn. */
-char *
+const char *
output_tst (operand, insn)
rtx operand, insn;
{
diff --git a/gcc/config/pa/long_double.h b/gcc/config/pa/long_double.h
index fa7a71054ba..f8358cca324 100644
--- a/gcc/config/pa/long_double.h
+++ b/gcc/config/pa/long_double.h
@@ -24,10 +24,10 @@ Boston, MA 02111-1307, USA. */
#define ASM_OUTPUT_LONG_DOUBLE(FILE,VALUE) \
do { long value[4]; \
REAL_VALUE_TO_TARGET_LONG_DOUBLE ((VALUE), value); \
- fprintf((FILE), "%s\t0x%x\n", "\t.word", value[0]); \
- fprintf((FILE), "%s\t0x%x\n", "\t.word", value[1]); \
- fprintf((FILE), "%s\t0x%x\n", "\t.word", value[2]); \
- fprintf((FILE), "%s\t0x%x\n", "\t.word", value[3]); \
+ fprintf((FILE), "%s\t0x%lx\n", "\t.word", value[0]); \
+ fprintf((FILE), "%s\t0x%lx\n", "\t.word", value[1]); \
+ fprintf((FILE), "%s\t0x%lx\n", "\t.word", value[2]); \
+ fprintf((FILE), "%s\t0x%lx\n", "\t.word", value[3]); \
} while (0)
diff --git a/gcc/config/pa/pa-protos.h b/gcc/config/pa/pa-protos.h
index 03d4ee23d3c..999579d9779 100644
--- a/gcc/config/pa/pa-protos.h
+++ b/gcc/config/pa/pa-protos.h
@@ -133,7 +133,7 @@ extern struct rtx_def *hppa_builtin_saveregs PARAMS ((void));
extern void output_deferred_plabels PARAMS ((FILE *));
extern void override_options PARAMS ((void));
-extern void output_ascii PARAMS ((FILE *, const unsigned char *, int));
+extern void output_ascii PARAMS ((FILE *, const char *, int));
extern int compute_frame_size PARAMS ((int, int *));
extern int and_mask_p PARAMS ((unsigned HOST_WIDE_INT));
extern int cint_ok_for_move PARAMS ((HOST_WIDE_INT));
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index f715d08e058..8ae8617fceb 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -2488,7 +2488,7 @@ output_64bit_ior (operands)
void
output_ascii (file, p, size)
FILE *file;
- const unsigned char *p;
+ const char *p;
int size;
{
int i;
diff --git a/gcc/config/pa/som.h b/gcc/config/pa/som.h
index 863b4f78164..c11a247e4f3 100644
--- a/gcc/config/pa/som.h
+++ b/gcc/config/pa/som.h
@@ -285,6 +285,7 @@ do { \
works correctly). */
#define EXTRA_SECTION_FUNCTIONS \
+extern void readonly_data PARAMS ((void)); \
void \
readonly_data () \
{ \
diff --git a/gcc/config/pdp11/pdp11.md b/gcc/config/pdp11/pdp11.md
index bbc2b9bf74d..13f8d02f9c1 100644
--- a/gcc/config/pdp11/pdp11.md
+++ b/gcc/config/pdp11/pdp11.md
@@ -1156,7 +1156,6 @@
""
"
{
- extern rtx expand_unop ();
if (GET_CODE (operands[2]) == CONST_INT)
operands[2] = GEN_INT (~INTVAL (operands[2]));
else
@@ -1170,7 +1169,6 @@
""
"
{
- extern rtx expand_unop ();
if (GET_CODE (operands[2]) == CONST_INT)
operands[2] = GEN_INT (~INTVAL (operands[2]));
else
@@ -1184,7 +1182,6 @@
""
"
{
- extern rtx expand_unop ();
rtx op = operands[2];
if (GET_CODE (op) == CONST_INT)
operands[2] = GEN_INT (((1 << 8) - 1) & ~INTVAL (op));
diff --git a/gcc/config/pj/pj-protos.h b/gcc/config/pj/pj-protos.h
index d26df656fec..9bec3332e42 100644
--- a/gcc/config/pj/pj-protos.h
+++ b/gcc/config/pj/pj-protos.h
@@ -34,7 +34,7 @@ extern int pj_unsigned_comparison_operator PARAMS ((rtx, enum machine_mode));
extern rtx pj_workout_arg_words PARAMS ((rtx, rtx));
extern void pj_machine_dependent_reorg PARAMS ((rtx));
extern void pj_print_operand PARAMS ((FILE * stream, rtx x, int code));
-extern char *pj_output_addsi3 PARAMS ((rtx * operands));
+extern const char *pj_output_addsi3 PARAMS ((rtx * operands));
#ifdef TREE_CODE
extern rtx pj_expand_builtin_va_arg PARAMS ((tree valist, tree type));
diff --git a/gcc/config/pj/pj.c b/gcc/config/pj/pj.c
index 65366270f4b..8e6488399ce 100644
--- a/gcc/config/pj/pj.c
+++ b/gcc/config/pj/pj.c
@@ -110,6 +110,14 @@ enum machine_mode pj_cmp_mode;
static void pj_output_rval PARAMS ((rtx, enum machine_mode, rtx));
static void pj_output_store_into_lval PARAMS ((enum machine_mode mode, rtx op));
+static void pj_output_push_int PARAMS ((int));
+static void pj_output_load PARAMS ((enum machine_mode, int));
+static void pj_output_inc PARAMS ((rtx, int));
+static void pj_output_cnv_op PARAMS ((enum insn_code, rtx));
+static char mode_to_char PARAMS ((enum machine_mode));
+static void pj_output_varidx PARAMS ((enum machine_mode, int, int));
+static void pj_print_cond PARAMS ((enum rtx_code));
+static rtx *unique_src_operand PARAMS ((rtx *, rtx));
/* These vectors turn a register number into an offset from the vars
pointer register. */
@@ -568,7 +576,7 @@ pj_output_rval (op, mode, outer_op)
/* Store the top of stack into the lval operand OP. */
-void
+static void
pj_output_store_into_lval (mode, op)
enum machine_mode mode;
rtx op;
@@ -829,7 +837,7 @@ pj_function_incoming_arg (cum, mode, passed_type, named_arg)
int i;
if (mode == DImode || mode == DFmode)
{
- cum->arg_adjust[cum->total_words + 0] = +1;
+ cum->arg_adjust[cum->total_words + 0] = 1;
cum->arg_adjust[cum->total_words + 1] = -1;
}
else
@@ -844,7 +852,7 @@ pj_function_incoming_arg (cum, mode, passed_type, named_arg)
/* Output code to add two SImode values. Deals carefully with the the common
case of moving the optop. */
-char *
+const char *
pj_output_addsi3 (operands)
rtx *operands;
{
diff --git a/gcc/config/romp/romp.md b/gcc/config/romp/romp.md
index 131e78cd4e3..010f00976d2 100644
--- a/gcc/config/romp/romp.md
+++ b/gcc/config/romp/romp.md
@@ -1667,7 +1667,6 @@
operands[0] = XEXP (operands[0], 0);
if (GET_CODE (operands[0]) == SYMBOL_REF)
{
- extern rtx get_symref ();
char *real_fcnname
= (char *) alloca (strlen (XSTR (operands[0], 0)) + 2);
@@ -1726,7 +1725,6 @@
operands[1] = XEXP (operands[1], 0);
if (GET_CODE (operands[1]) == SYMBOL_REF)
{
- extern rtx get_symref ();
char *real_fcnname =
(char *) alloca (strlen (XSTR (operands[1], 0)) + 2);
diff --git a/gcc/config/v850/v850-c.c b/gcc/config/v850/v850-c.c
index 84aef1fe4d3..02092a38814 100644
--- a/gcc/config/v850/v850-c.c
+++ b/gcc/config/v850/v850-c.c
@@ -93,7 +93,7 @@ mark_current_function_as_interrupt ()
if (current_function_decl == NULL_TREE)
{
warning ("Cannot set interrupt attribute: no current function");
- return 0;
+ return;
}
name = get_identifier ("interrupt");
@@ -101,7 +101,7 @@ mark_current_function_as_interrupt ()
if (name == NULL_TREE || TREE_CODE (name) != IDENTIFIER_NODE)
{
warning ("Cannot set interrupt attribute: no such identifier");
- return 0;
+ return;
}
decl_attributes (&current_function_decl,
diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c
index ea83c153164..de4ebbbe435 100644
--- a/gcc/config/v850/v850.c
+++ b/gcc/config/v850/v850.c
@@ -39,6 +39,7 @@ Boston, MA 02111-1307, USA. */
#include "cpplib.h"
#include "c-lex.h"
#include "ggc.h"
+#include "integrate.h"
#include "tm_p.h"
#include "target.h"
#include "target-def.h"
diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h
index dc71c7ac2db..1636fd1f011 100644
--- a/gcc/config/v850/v850.h
+++ b/gcc/config/v850/v850.h
@@ -1346,7 +1346,7 @@ do { char dstr[30]; \
#undef ASM_OUTPUT_LABELREF
#define ASM_OUTPUT_LABELREF(FILE, NAME) \
do { \
- char* real_name; \
+ const char* real_name; \
STRIP_NAME_ENCODING (real_name, (NAME)); \
asm_fprintf (FILE, "%U%s", real_name); \
} while (0)
diff --git a/gcc/config/vax/vax-protos.h b/gcc/config/vax/vax-protos.h
index a1498381001..f836c1e8bfb 100644
--- a/gcc/config/vax/vax-protos.h
+++ b/gcc/config/vax/vax-protos.h
@@ -36,3 +36,4 @@ extern void vms_check_external PARAMS ((tree, const char *, int));
#endif /* TREE_CODE */
extern void vms_flush_pending_externals PARAMS ((FILE *));
+extern void const_section PARAMS ((void));