Commit acf9cc0f by Kaveh R. Ghazi Committed by Kaveh Ghazi

a29k-protos.h (literal_section): Prototype.

	* a29k-protos.h (literal_section): Prototype.
	* a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
	* a29k.md: Ensure function pointers are prototyped.
	* genattrtab.c (write_eligible_delay): Mark parameter with
	ATTRIBUTE_UNUSED.

From-SVN: r46359
parent 6894579f
2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* a29k-protos.h (literal_section): Prototype.
* a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
* a29k.md: Ensure function pointers are prototyped.
* genattrtab.c (write_eligible_delay): Mark parameter with
ATTRIBUTE_UNUSED.
2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED. * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
* 1750a.c (print_operand): Fix format specifier warning. * 1750a.c (print_operand): Fix format specifier warning.
* 1750a.h (ASM_FILE_START): Don't discard pointer qualifier. * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
......
...@@ -61,3 +61,5 @@ extern int null_epilogue PARAMS ((void)); ...@@ -61,3 +61,5 @@ extern int null_epilogue PARAMS ((void));
extern void print_operand PARAMS ((FILE *, rtx, int)); extern void print_operand PARAMS ((FILE *, rtx, int));
extern void a29k_compute_reg_names PARAMS ((void)); extern void a29k_compute_reg_names PARAMS ((void));
#endif /* RTX_CODE */ #endif /* RTX_CODE */
extern void literal_section PARAMS ((void));
...@@ -1316,7 +1316,7 @@ extern const char *a29k_function_name; ...@@ -1316,7 +1316,7 @@ extern const char *a29k_function_name;
/* Output at beginning of assembler file. */ /* Output at beginning of assembler file. */
#define ASM_FILE_START(FILE) \ #define ASM_FILE_START(FILE) \
{ char *p, *after_dir = main_input_filename; \ { const char *p, *after_dir = main_input_filename; \
if (TARGET_29050) \ if (TARGET_29050) \
fprintf (FILE, "\t.cputype 29050\n"); \ fprintf (FILE, "\t.cputype 29050\n"); \
for (p = main_input_filename; *p; p++) \ for (p = main_input_filename; *p; p++) \
......
...@@ -1776,7 +1776,7 @@ ...@@ -1776,7 +1776,7 @@
{ {
rtx general = gen_reg_rtx (SImode); rtx general = gen_reg_rtx (SImode);
rtx bp = gen_reg_rtx (PSImode); rtx bp = gen_reg_rtx (PSImode);
rtx (*fcn) () rtx (*fcn) PARAMS ((rtx, rtx, rtx, rtx))
= TARGET_BYTE_WRITES ? gen_storehihww : gen_storehinhww; = TARGET_BYTE_WRITES ? gen_storehihww : gen_storehinhww;
rtx seq = (*fcn) (XEXP (operands[0], 0), rtx seq = (*fcn) (XEXP (operands[0], 0),
gen_lowpart (SImode, operands[1]), gen_lowpart (SImode, operands[1]),
...@@ -1825,7 +1825,8 @@ ...@@ -1825,7 +1825,8 @@
(match_operand:PSI 2 "register_operand" "=b")])] (match_operand:PSI 2 "register_operand" "=b")])]
"! TARGET_DW_ENABLE" "! TARGET_DW_ENABLE"
" "
{ rtx (*fcn) () = TARGET_BYTE_WRITES ? gen_storehihww : gen_storehinhww; { rtx (*fcn) PARAMS ((rtx, rtx, rtx, rtx)) =
TARGET_BYTE_WRITES ? gen_storehihww : gen_storehinhww;
rtx seq = (*fcn) (a29k_get_reloaded_address (operands[0]), rtx seq = (*fcn) (a29k_get_reloaded_address (operands[0]),
gen_lowpart (SImode, operands[1]), gen_lowpart (SImode, operands[1]),
gen_rtx_REG (SImode, R_TAV), operands[2]); gen_rtx_REG (SImode, R_TAV), operands[2]);
...@@ -1906,7 +1907,7 @@ ...@@ -1906,7 +1907,7 @@
{ {
rtx general = gen_reg_rtx (SImode); rtx general = gen_reg_rtx (SImode);
rtx bp = gen_reg_rtx (PSImode); rtx bp = gen_reg_rtx (PSImode);
rtx (*fcn) () rtx (*fcn) PARAMS ((rtx, rtx, rtx, rtx))
= TARGET_BYTE_WRITES ? gen_storeqihww : gen_storeqinhww; = TARGET_BYTE_WRITES ? gen_storeqihww : gen_storeqinhww;
rtx seq = (*fcn) (XEXP (operands[0], 0), rtx seq = (*fcn) (XEXP (operands[0], 0),
gen_lowpart (SImode, operands[1]), gen_lowpart (SImode, operands[1]),
...@@ -1955,7 +1956,8 @@ ...@@ -1955,7 +1956,8 @@
(match_operand:PSI 2 "register_operand" "=b")])] (match_operand:PSI 2 "register_operand" "=b")])]
"! TARGET_DW_ENABLE" "! TARGET_DW_ENABLE"
" "
{ rtx (*fcn) () = TARGET_BYTE_WRITES ? gen_storeqihww : gen_storeqinhww; { rtx (*fcn) PARAMS ((rtx, rtx, rtx, rtx)) =
TARGET_BYTE_WRITES ? gen_storeqihww : gen_storeqinhww;
rtx seq = (*fcn) (a29k_get_reloaded_address (operands[0]), rtx seq = (*fcn) (a29k_get_reloaded_address (operands[0]),
gen_lowpart (SImode, operands[1]), gen_lowpart (SImode, operands[1]),
gen_rtx_REG (SImode, R_TAV), operands[2]); gen_rtx_REG (SImode, R_TAV), operands[2]);
......
...@@ -5528,7 +5528,7 @@ write_eligible_delay (kind) ...@@ -5528,7 +5528,7 @@ write_eligible_delay (kind)
printf ("int\n"); printf ("int\n");
printf ("eligible_for_%s (delay_insn, slot, candidate_insn, flags)\n", printf ("eligible_for_%s (delay_insn, slot, candidate_insn, flags)\n",
kind); kind);
printf (" rtx delay_insn;\n"); printf (" rtx delay_insn ATTRIBUTE_UNUSED;\n");
printf (" int slot;\n"); printf (" int slot;\n");
printf (" rtx candidate_insn;\n"); printf (" rtx candidate_insn;\n");
printf (" int flags ATTRIBUTE_UNUSED;\n"); printf (" int flags ATTRIBUTE_UNUSED;\n");
......
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