Commit 1943c2c1 by Kaveh R. Ghazi Committed by Kaveh Ghazi

1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.

	* 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.

From-SVN: r46755
parent a52706f2
2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* 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.
2001-11-03 Aldy Hernandez <aldyh@redhat.com>
* machmode.def: Add documentation for the seventh argument in
......
......@@ -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"); \
......
......@@ -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]); \
......
......@@ -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)
{
......
......@@ -555,7 +555,6 @@
""
"*
{
extern void clipper_movstr ();
clipper_movstr (operands);
return \"\";
}"
......
......@@ -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 */
......
......@@ -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;
......
......@@ -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
......
......@@ -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))
......
......@@ -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];
......
......@@ -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 () \
{ \
......
......@@ -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. */
......
......@@ -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;
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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]))
......
......@@ -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*,
......
......@@ -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");
......
......@@ -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);
......
......@@ -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.
......
......@@ -1029,7 +1029,7 @@ enum shift_type
enum shift_mode
{
HIshift,
HIshift
};
/* For single bit shift insns, record assembler and what bits of the
......
......@@ -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));
......
......@@ -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;
{
......
......@@ -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)
......
......@@ -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));
......
......@@ -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;
......
......@@ -285,6 +285,7 @@ do { \
works correctly). */
#define EXTRA_SECTION_FUNCTIONS \
extern void readonly_data PARAMS ((void)); \
void \
readonly_data () \
{ \
......
......@@ -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));
......
......@@ -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));
......
......@@ -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;
{
......
......@@ -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);
......
......@@ -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,
......
......@@ -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"
......
......@@ -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)
......
......@@ -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));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment