Commit 899eb12d by Michael Meissner

Eliminate externs within {}.

From-SVN: r1795
parent 001af587
...@@ -75,23 +75,6 @@ extern tree lookup_name (); ...@@ -75,23 +75,6 @@ extern tree lookup_name ();
extern void pfatal_with_name (); extern void pfatal_with_name ();
extern void warning (); extern void warning ();
extern rtx gen_addsi3 ();
extern rtx gen_andsi3 ();
extern rtx gen_beq ();
extern rtx gen_bne ();
extern rtx gen_cmpsi ();
extern rtx gen_indirect_jump ();
extern rtx gen_iorsi3 ();
extern rtx gen_jump ();
extern rtx gen_movhi ();
extern rtx gen_movqi ();
extern rtx gen_movsi ();
extern rtx gen_movsi_ulw ();
extern rtx gen_movsi_usw ();
extern rtx gen_movstrsi_internal ();
extern rtx gen_return_internal ();
extern rtx gen_subsi3 ();
extern tree current_function_decl; extern tree current_function_decl;
extern FILE *asm_out_file; extern FILE *asm_out_file;
...@@ -4561,8 +4544,8 @@ function_epilogue (file, size) ...@@ -4561,8 +4544,8 @@ function_epilogue (file, size)
num_refs[2] = 0; num_refs[2] = 0;
mips_load_reg = (rtx)0; mips_load_reg = (rtx)0;
mips_load_reg2 = (rtx)0; mips_load_reg2 = (rtx)0;
number_functions_processed++;
current_frame_info = zero_frame_info; current_frame_info = zero_frame_info;
number_functions_processed++;
/* Restore the output file if optimizing the GP (optimizing the GP causes /* Restore the output file if optimizing the GP (optimizing the GP causes
the text to be diverted to a tempfile, so that data decls come before the text to be diverted to a tempfile, so that data decls come before
......
...@@ -473,7 +473,7 @@ while (0) ...@@ -473,7 +473,7 @@ while (0)
/* Print subsidiary information on the compiler version in use. */ /* Print subsidiary information on the compiler version in use. */
#define MIPS_VERSION "[AL 1.1, MM 22]" #define MIPS_VERSION "[AL 1.1, MM 23]"
#ifndef MACHINE_TYPE #ifndef MACHINE_TYPE
#define MACHINE_TYPE "BSD Mips" #define MACHINE_TYPE "BSD Mips"
...@@ -2288,7 +2288,6 @@ while (0) ...@@ -2288,7 +2288,6 @@ while (0)
\ \
case CONST: \ case CONST: \
{ \ { \
extern rtx eliminate_constant_term (); \
rtx offset = const0_rtx; \ rtx offset = const0_rtx; \
rtx symref = eliminate_constant_term (X, &offset); \ rtx symref = eliminate_constant_term (X, &offset); \
\ \
...@@ -3241,7 +3240,6 @@ rdata_section () \ ...@@ -3241,7 +3240,6 @@ rdata_section () \
#define SELECT_SECTION_MODE(MODE,RTX) \ #define SELECT_SECTION_MODE(MODE,RTX) \
{ \ { \
extern int mips_section_threshold; \
if ((GET_MODE_SIZE(MODE) / BITS_PER_UNIT) <= mips_section_threshold \ if ((GET_MODE_SIZE(MODE) / BITS_PER_UNIT) <= mips_section_threshold \
&& mips_section_threshold > 0) \ && mips_section_threshold > 0) \
sdata_section (); \ sdata_section (); \
...@@ -3251,7 +3249,6 @@ rdata_section () \ ...@@ -3251,7 +3249,6 @@ rdata_section () \
#define SELECT_SECTION(DECL,RELOC) \ #define SELECT_SECTION(DECL,RELOC) \
{ \ { \
extern int mips_section_threshold; \
if (int_size_in_bytes (TREE_TYPE (DECL)) <= mips_section_threshold \ if (int_size_in_bytes (TREE_TYPE (DECL)) <= mips_section_threshold \
&& mips_section_threshold > 0) \ && mips_section_threshold > 0) \
sdata_section (); \ sdata_section (); \
......
...@@ -1552,7 +1552,6 @@ move\\t%0,%z4\\n\\ ...@@ -1552,7 +1552,6 @@ move\\t%0,%z4\\n\\
if (reg1) /* turn off complaints about unreached code */ if (reg1) /* turn off complaints about unreached code */
{ {
extern rtx gen_cmpdf ();
emit_move_insn (reg1, immed_real_const_1 (offset, DFmode)); emit_move_insn (reg1, immed_real_const_1 (offset, DFmode));
do_pending_stack_adjust (); do_pending_stack_adjust ();
...@@ -1596,7 +1595,6 @@ move\\t%0,%z4\\n\\ ...@@ -1596,7 +1595,6 @@ move\\t%0,%z4\\n\\
if (reg1) /* turn off complaints about unreached code */ if (reg1) /* turn off complaints about unreached code */
{ {
extern rtx gen_cmpsf ();
emit_move_insn (reg1, immed_real_const_1 (offset, SFmode)); emit_move_insn (reg1, immed_real_const_1 (offset, SFmode));
do_pending_stack_adjust (); do_pending_stack_adjust ();
...@@ -1640,9 +1638,6 @@ move\\t%0,%z4\\n\\ ...@@ -1640,9 +1638,6 @@ move\\t%0,%z4\\n\\
"" ""
" "
{ {
extern rtx gen_movsi_ulw ();
extern rtx gen_movsi ();
/* Handle loads. */ /* Handle loads. */
if (GET_CODE (operands[0]) == MEM) if (GET_CODE (operands[0]) == MEM)
{ {
...@@ -1675,7 +1670,6 @@ move\\t%0,%z4\\n\\ ...@@ -1675,7 +1670,6 @@ move\\t%0,%z4\\n\\
"" ""
"* "*
{ {
extern rtx eliminate_constant_term ();
enum rtx_code code; enum rtx_code code;
char *ret; char *ret;
rtx offset; rtx offset;
...@@ -1726,7 +1720,6 @@ move\\t%0,%z4\\n\\ ...@@ -1726,7 +1720,6 @@ move\\t%0,%z4\\n\\
"" ""
"* "*
{ {
extern rtx eliminate_constant_term ();
rtx offset = const0_rtx; rtx offset = const0_rtx;
rtx addr = XEXP (operands[0], 0); rtx addr = XEXP (operands[0], 0);
rtx mem_addr = eliminate_constant_term (addr, &offset); rtx mem_addr = eliminate_constant_term (addr, &offset);
...@@ -3058,8 +3051,6 @@ move\\t%0,%z4\\n\\ ...@@ -3058,8 +3051,6 @@ move\\t%0,%z4\\n\\
"" ""
" "
{ {
extern rtx force_reg ();
if (branch_type != CMP_SI) if (branch_type != CMP_SI)
FAIL; FAIL;
...@@ -3123,8 +3114,6 @@ move\\t%0,%z4\\n\\ ...@@ -3123,8 +3114,6 @@ move\\t%0,%z4\\n\\
"" ""
" "
{ {
extern rtx force_reg ();
if (branch_type != CMP_SI) if (branch_type != CMP_SI)
FAIL; FAIL;
...@@ -3187,8 +3176,6 @@ move\\t%0,%z4\\n\\ ...@@ -3187,8 +3176,6 @@ move\\t%0,%z4\\n\\
"" ""
" "
{ {
extern rtx force_reg ();
if (branch_type != CMP_SI) if (branch_type != CMP_SI)
FAIL; FAIL;
...@@ -3304,8 +3291,6 @@ move\\t%0,%z4\\n\\ ...@@ -3304,8 +3291,6 @@ move\\t%0,%z4\\n\\
"" ""
" "
{ {
extern rtx force_reg ();
if (branch_type != CMP_SI) if (branch_type != CMP_SI)
FAIL; FAIL;
...@@ -3369,8 +3354,6 @@ move\\t%0,%z4\\n\\ ...@@ -3369,8 +3354,6 @@ move\\t%0,%z4\\n\\
"" ""
" "
{ {
extern rtx force_reg ();
if (branch_type != CMP_SI) if (branch_type != CMP_SI)
FAIL; FAIL;
...@@ -3486,8 +3469,6 @@ move\\t%0,%z4\\n\\ ...@@ -3486,8 +3469,6 @@ move\\t%0,%z4\\n\\
"" ""
" "
{ {
extern rtx force_reg ();
if (branch_type != CMP_SI) if (branch_type != CMP_SI)
FAIL; FAIL;
......
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