Commit 69d4ca36 by Robert Lipe Committed by Robert Lipe

c-lang.c (finish_file): Bracket declaration of static_ctors, static_dtors.

	* c-lang.c (finish_file): Bracket declaration of static_ctors,
	static_dtors.
	* calls.c (expand_call): Bracket declaration of 'rtx_before_call',
	'old_stack_arg_under_construction'
	(emit_library_call): Bracket declaration of 'upper_bound',
	'lower_bound', 'i', 'reg_parm_stack_space'
	(emit_library_call_value): Likewise.
	(store_one_arg):
	* collect2.c: include <unistd.h> when appropriate.
	Bracket declaration of 'exportf' and 'full_real_ld_suffix'.
	* emit-rtl.c (prev_cc0_setter): Remove unused variable 'link'.
	* explow.c (plus_constant_for_output_wide): Remove unused variable
	'code'.
	(memory_address): Remove unused variable 'orig_x'.
	* genattrtab.c (make_canonical): Remove unreferenced label 'cond:'.
	(write_const_num_delay_slots): Remove unused variable 'i'.
	* genopinit.c (main): Remove unused variables 'dummy', 'insn_ptr'.
	(gen_insn): Remove unused variable 'obstack_ptr'.
        * libgcc2.c (__bb_exit_func): Remove unused variables 'ret',
        'j', 'tmp', 'i'.
	(__bb_exit_trace_func): Remove unused variable 'e'.
	* optabs.c (expand_binop): remove unused variables 'lhs', 'rhs',
	'funexp'.
	(expand_unop): Remove unused variable 'funexp'.
	(expand_complex_abs): Remove unused variable 'funexp'.
	(init_optabs): Bracket declaration of 'j'.
	(init_complex_libfuncs): Deleted.  Dead static function.
	* profile.c (branch_prob): Remove unused variables 'insn', 'dest'.
	* reg-stack.c: Fix typo in proto for 'get_asm_operand_lengths'
	(reg_to_stack): 'initialized', 'before_function_beg'
	explictly type as ints instead of defaulting.
	(emit_swap_insn): Remove unused variable 'i2'.
	(compare_for_stack_reg): Remove unused variable 'src_note'.
	* rtlanal.c (computed_jump_p): Remove unused variable 'computed_jump'.
	* sched.c (actual_hazard): Bracket declaration of 'this_cost'.
	* stmt.c (add_case_node): Add parens for assignment used as truth.
	(all_cases_count):  Remove unused variable 'count_high'.
	(mark_seen_cases): Remove unused variable 'i'.
	(check_for_full_enumeration_handling): Remove unused variable 't'.
	Bracket declaration of  'all_values', 'l'.
	* tlink.c: Include <stdlib.h>, <unistd.h>, <string.h>/<strings.h>.
	* varasm.c (assemble_string): Remove unused variable 'i'.
	(immed_double_const): Remove unused variable 'in_current_obstack'.
	(immed_real_const_1): Likewise.
	(output_constant_pool): Remove unreferenced label 'done'.
	(output_constant): Remove unused variable 'x'.
        * i386/i386.h (ENCODE_SECTION_INFO): TREE_PUBLIC is an int, not
        a string.
        * i386/sco5.h (ASM_OUTPUT_ASCII): Add parens for assignment used
        as truth.

From-SVN: r17901
parent 387c47a3
Wed Feb 11 21:44:40 1998 Robert Lipe <robertl@dgii.com>
* c-lang.c (finish_file): Bracket declaration of static_ctors,
static_dtors.
* calls.c (expand_call): Bracket declaration of 'rtx_before_call',
'old_stack_arg_under_construction'
(emit_library_call): Bracket declaration of 'upper_bound',
'lower_bound', 'i', 'reg_parm_stack_space'
(emit_library_call_value): Likewise.
(store_one_arg):
* collect2.c: include <unistd.h> when appropriate.
Bracket declaration of 'exportf' and 'full_real_ld_suffix'.
* emit-rtl.c (prev_cc0_setter): Remove unused variable 'link'.
* explow.c (plus_constant_for_output_wide): Remove unused variable
'code'.
(memory_address): Remove unused variable 'orig_x'.
* genattrtab.c (make_canonical): Remove unreferenced label 'cond:'.
(write_const_num_delay_slots): Remove unused variable 'i'.
* genopinit.c (main): Remove unused variables 'dummy', 'insn_ptr'.
(gen_insn): Remove unused variable 'obstack_ptr'.
* libgcc2.c (__bb_exit_func): Remove unused variables 'ret',
'j', 'tmp', 'i'.
(__bb_exit_trace_func): Remove unused variable 'e'.
* optabs.c (expand_binop): remove unused variables 'lhs', 'rhs',
'funexp'.
(expand_unop): Remove unused variable 'funexp'.
(expand_complex_abs): Remove unused variable 'funexp'.
(init_optabs): Bracket declaration of 'j'.
(init_complex_libfuncs): Deleted. Dead static function.
* profile.c (branch_prob): Remove unused variables 'insn', 'dest'.
* reg-stack.c: Fix typo in proto for 'get_asm_operand_lengths'
(reg_to_stack): 'initialized', 'before_function_beg'
explictly type as ints instead of defaulting.
(emit_swap_insn): Remove unused variable 'i2'.
(compare_for_stack_reg): Remove unused variable 'src_note'.
* rtlanal.c (computed_jump_p): Remove unused variable 'computed_jump'.
* sched.c (actual_hazard): Bracket declaration of 'this_cost'.
* stmt.c (add_case_node): Add parens for assignment used as truth.
(all_cases_count): Remove unused variable 'count_high'.
(mark_seen_cases): Remove unused variable 'i'.
(check_for_full_enumeration_handling): Remove unused variable 't'.
Bracket declaration of 'all_values', 'l'.
* tlink.c: Include <stdlib.h>, <unistd.h>, <string.h>/<strings.h>.
* varasm.c (assemble_string): Remove unused variable 'i'.
(immed_double_const): Remove unused variable 'in_current_obstack'.
(immed_real_const_1): Likewise.
(output_constant_pool): Remove unreferenced label 'done'.
(output_constant): Remove unused variable 'x'.
* i386/i386.h (ENCODE_SECTION_INFO): TREE_PUBLIC is an int, not
a string.
* i386/sco5.h (ASM_OUTPUT_ASCII): Add parens for assignment used
as truth.
Fri Feb 13 10:21:41 1998 J"orn Rennecke <amylaar@cygnus.co.uk> Fri Feb 13 10:21:41 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* combine.c (can_combine_p): Handle USEs in PARALLELs. * combine.c (can_combine_p): Handle USEs in PARALLELs.
......
...@@ -136,7 +136,12 @@ GNU_xref_end () ...@@ -136,7 +136,12 @@ GNU_xref_end ()
void void
finish_file () finish_file ()
{ {
extern tree static_ctors, static_dtors; #ifndef ASM_OUTPUT_CONSTRUCTOR
extern tree static_ctors;
#endif
#ifndef ASM_OUTPUT_DESTRUCTOR
extern tree static_dtors;
#endif
extern tree build_function_call PROTO((tree, tree)); extern tree build_function_call PROTO((tree, tree));
tree void_list_node = build_tree_list (NULL_TREE, void_type_node); tree void_list_node = build_tree_list (NULL_TREE, void_type_node);
#ifndef ASM_OUTPUT_CONSTRUCTOR #ifndef ASM_OUTPUT_CONSTRUCTOR
......
...@@ -585,11 +585,11 @@ expand_call (exp, target, ignore) ...@@ -585,11 +585,11 @@ expand_call (exp, target, ignore)
#ifdef ACCUMULATE_OUTGOING_ARGS #ifdef ACCUMULATE_OUTGOING_ARGS
int initial_highest_arg_in_use = highest_outgoing_arg_in_use; int initial_highest_arg_in_use = highest_outgoing_arg_in_use;
char *initial_stack_usage_map = stack_usage_map; char *initial_stack_usage_map = stack_usage_map;
int old_stack_arg_under_construction;
#endif #endif
rtx old_stack_level = 0; rtx old_stack_level = 0;
int old_pending_adj = 0; int old_pending_adj = 0;
int old_stack_arg_under_construction;
int old_inhibit_defer_pop = inhibit_defer_pop; int old_inhibit_defer_pop = inhibit_defer_pop;
rtx call_fusage = 0; rtx call_fusage = 0;
register tree p; register tree p;
...@@ -723,7 +723,9 @@ expand_call (exp, target, ignore) ...@@ -723,7 +723,9 @@ expand_call (exp, target, ignore)
if (is_integrable) if (is_integrable)
{ {
rtx temp; rtx temp;
#ifdef ACCUMULATE_OUTGOING_ARGS
rtx before_call = get_last_insn (); rtx before_call = get_last_insn ();
#endif
temp = expand_inline_function (fndecl, actparms, target, temp = expand_inline_function (fndecl, actparms, target,
ignore, TREE_TYPE (exp), ignore, TREE_TYPE (exp),
...@@ -2319,8 +2321,6 @@ emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode, ...@@ -2319,8 +2321,6 @@ emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode,
struct arg *argvec; struct arg *argvec;
int old_inhibit_defer_pop = inhibit_defer_pop; int old_inhibit_defer_pop = inhibit_defer_pop;
rtx call_fusage = 0; rtx call_fusage = 0;
/* Size of the stack reserved for parameter registers. */
int reg_parm_stack_space = 0;
#if defined(ACCUMULATE_OUTGOING_ARGS) && defined(REG_PARM_STACK_SPACE) #if defined(ACCUMULATE_OUTGOING_ARGS) && defined(REG_PARM_STACK_SPACE)
/* Define the boundary of the register parm stack space that needs to be /* Define the boundary of the register parm stack space that needs to be
save, if any. */ save, if any. */
...@@ -2335,6 +2335,8 @@ emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode, ...@@ -2335,6 +2335,8 @@ emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode,
#endif #endif
#ifdef REG_PARM_STACK_SPACE #ifdef REG_PARM_STACK_SPACE
/* Size of the stack reserved for parameter registers. */
int reg_parm_stack_space = 0;
#ifdef MAYBE_REG_PARM_STACK_SPACE #ifdef MAYBE_REG_PARM_STACK_SPACE
reg_parm_stack_space = MAYBE_REG_PARM_STACK_SPACE; reg_parm_stack_space = MAYBE_REG_PARM_STACK_SPACE;
#else #else
...@@ -2613,7 +2615,9 @@ emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode, ...@@ -2613,7 +2615,9 @@ emit_library_call VPROTO((rtx orgfun, int no_queue, enum machine_mode outmode,
register rtx val = argvec[argnum].value; register rtx val = argvec[argnum].value;
rtx reg = argvec[argnum].reg; rtx reg = argvec[argnum].reg;
int partial = argvec[argnum].partial; int partial = argvec[argnum].partial;
#ifdef ACCUMULATE_OUTGOING_ARGS
int lower_bound, upper_bound, i; int lower_bound, upper_bound, i;
#endif
if (! (reg != 0 && partial == 0)) if (! (reg != 0 && partial == 0))
{ {
...@@ -2817,13 +2821,13 @@ emit_library_call_value VPROTO((rtx orgfun, rtx value, int no_queue, ...@@ -2817,13 +2821,13 @@ emit_library_call_value VPROTO((rtx orgfun, rtx value, int no_queue,
struct arg *argvec; struct arg *argvec;
int old_inhibit_defer_pop = inhibit_defer_pop; int old_inhibit_defer_pop = inhibit_defer_pop;
rtx call_fusage = 0; rtx call_fusage = 0;
/* Size of the stack reserved for parameter registers. */
int reg_parm_stack_space = 0;
rtx mem_value = 0; rtx mem_value = 0;
int pcc_struct_value = 0; int pcc_struct_value = 0;
int struct_value_size = 0; int struct_value_size = 0;
int is_const; int is_const;
#ifdef ACCUMULATE_OUTGOING_ARGS
int needed; int needed;
#endif
#if defined(ACCUMULATE_OUTGOING_ARGS) && defined(REG_PARM_STACK_SPACE) #if defined(ACCUMULATE_OUTGOING_ARGS) && defined(REG_PARM_STACK_SPACE)
/* Define the boundary of the register parm stack space that needs to be /* Define the boundary of the register parm stack space that needs to be
...@@ -2833,6 +2837,8 @@ emit_library_call_value VPROTO((rtx orgfun, rtx value, int no_queue, ...@@ -2833,6 +2837,8 @@ emit_library_call_value VPROTO((rtx orgfun, rtx value, int no_queue,
#endif #endif
#ifdef ACCUMULATE_OUTGOING_ARGS #ifdef ACCUMULATE_OUTGOING_ARGS
/* Size of the stack reserved for parameter registers. */
int reg_parm_stack_space = 0;
int initial_highest_arg_in_use = highest_outgoing_arg_in_use; int initial_highest_arg_in_use = highest_outgoing_arg_in_use;
char *initial_stack_usage_map = stack_usage_map; char *initial_stack_usage_map = stack_usage_map;
#endif #endif
...@@ -3184,7 +3190,9 @@ emit_library_call_value VPROTO((rtx orgfun, rtx value, int no_queue, ...@@ -3184,7 +3190,9 @@ emit_library_call_value VPROTO((rtx orgfun, rtx value, int no_queue,
register rtx val = argvec[argnum].value; register rtx val = argvec[argnum].value;
rtx reg = argvec[argnum].reg; rtx reg = argvec[argnum].reg;
int partial = argvec[argnum].partial; int partial = argvec[argnum].partial;
#ifdef ACCUMULATE_OUTGOING_ARGS
int lower_bound, upper_bound, i; int lower_bound, upper_bound, i;
#endif
if (! (reg != 0 && partial == 0)) if (! (reg != 0 && partial == 0))
{ {
...@@ -3448,7 +3456,9 @@ store_one_arg (arg, argblock, may_be_alloca, variable_size, fndecl, ...@@ -3448,7 +3456,9 @@ store_one_arg (arg, argblock, may_be_alloca, variable_size, fndecl,
rtx reg = 0; rtx reg = 0;
int partial = 0; int partial = 0;
int used = 0; int used = 0;
#ifdef ACCUMULATE_OUTGOING_ARGS
int i, lower_bound, upper_bound; int i, lower_bound, upper_bound;
#endif
if (TREE_CODE (pval) == ERROR_MARK) if (TREE_CODE (pval) == ERROR_MARK)
return; return;
......
...@@ -38,6 +38,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -38,6 +38,10 @@ Boston, MA 02111-1307, USA. */
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> #include <string.h>
#else #else
...@@ -921,7 +925,9 @@ main (argc, argv) ...@@ -921,7 +925,9 @@ main (argc, argv)
char *ld_suffix = "ld"; char *ld_suffix = "ld";
char *full_ld_suffix = ld_suffix; char *full_ld_suffix = ld_suffix;
char *real_ld_suffix = "real-ld"; char *real_ld_suffix = "real-ld";
#ifdef CROSS_COMPILE
char *full_real_ld_suffix = real_ld_suffix; char *full_real_ld_suffix = real_ld_suffix;
#endif
char *collect_ld_suffix = "collect-ld"; char *collect_ld_suffix = "collect-ld";
char *nm_suffix = "nm"; char *nm_suffix = "nm";
char *full_nm_suffix = nm_suffix; char *full_nm_suffix = nm_suffix;
...@@ -936,7 +942,10 @@ main (argc, argv) ...@@ -936,7 +942,10 @@ main (argc, argv)
char *gstrip_suffix = "gstrip"; char *gstrip_suffix = "gstrip";
char *full_gstrip_suffix = gstrip_suffix; char *full_gstrip_suffix = gstrip_suffix;
char *arg; char *arg;
FILE *outf, *exportf; FILE *outf;
#ifdef COLLECT_EXPORT_LIST
FILE *exportf;
#endif /* COLLECT_EXPORT_LIST */
char *ld_file_name; char *ld_file_name;
char *collect_name; char *collect_name;
char *collect_names; char *collect_names;
......
...@@ -1716,7 +1716,7 @@ do \ ...@@ -1716,7 +1716,7 @@ do \
if (TARGET_DEBUG_ADDR \ if (TARGET_DEBUG_ADDR \
&& TREE_CODE_CLASS (TREE_CODE (DECL)) == 'd') \ && TREE_CODE_CLASS (TREE_CODE (DECL)) == 'd') \
{ \ { \
fprintf (stderr, "Encode %s, public = %s\n", \ fprintf (stderr, "Encode %s, public = %d\n", \
IDENTIFIER_POINTER (DECL_NAME (DECL)), \ IDENTIFIER_POINTER (DECL_NAME (DECL)), \
TREE_PUBLIC (DECL)); \ TREE_PUBLIC (DECL)); \
} \ } \
......
...@@ -313,7 +313,7 @@ asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN) ...@@ -313,7 +313,7 @@ asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
register unsigned char *_limited_str = (unsigned char *) (STR); \ register unsigned char *_limited_str = (unsigned char *) (STR); \
register unsigned ch; \ register unsigned ch; \
fprintf ((FILE), "%s\t\"", STRING_ASM_OP); \ fprintf ((FILE), "%s\t\"", STRING_ASM_OP); \
for (; ch = *_limited_str; _limited_str++) \ for (; (ch = *_limited_str); _limited_str++) \
{ \ { \
register int escape; \ register int escape; \
switch (escape = ESCAPES[ch]) \ switch (escape = ESCAPES[ch]) \
......
...@@ -2108,7 +2108,6 @@ prev_cc0_setter (insn) ...@@ -2108,7 +2108,6 @@ prev_cc0_setter (insn)
rtx insn; rtx insn;
{ {
rtx note = find_reg_note (insn, REG_CC_SETTER, NULL_RTX); rtx note = find_reg_note (insn, REG_CC_SETTER, NULL_RTX);
rtx link;
if (note) if (note)
return XEXP (note, 0); return XEXP (note, 0);
......
...@@ -151,7 +151,6 @@ plus_constant_for_output_wide (x, c) ...@@ -151,7 +151,6 @@ plus_constant_for_output_wide (x, c)
register rtx x; register rtx x;
register HOST_WIDE_INT c; register HOST_WIDE_INT c;
{ {
register RTX_CODE code = GET_CODE (x);
register enum machine_mode mode = GET_MODE (x); register enum machine_mode mode = GET_MODE (x);
if (GET_CODE (x) == LO_SUM) if (GET_CODE (x) == LO_SUM)
......
...@@ -1446,7 +1446,6 @@ make_canonical (attr, exp) ...@@ -1446,7 +1446,6 @@ make_canonical (attr, exp)
/* Fall through to COND case since this is now a COND. */ /* Fall through to COND case since this is now a COND. */
case COND: case COND:
cond:
{ {
int allsame = 1; int allsame = 1;
rtx defval; rtx defval;
...@@ -5770,7 +5769,6 @@ write_const_num_delay_slots () ...@@ -5770,7 +5769,6 @@ write_const_num_delay_slots ()
struct attr_desc *attr = find_attr ("*num_delay_slots", 0); struct attr_desc *attr = find_attr ("*num_delay_slots", 0);
struct attr_value *av; struct attr_value *av;
struct insn_ent *ie; struct insn_ent *ie;
int i;
if (attr) if (attr)
{ {
......
...@@ -142,7 +142,6 @@ gen_insn (insn) ...@@ -142,7 +142,6 @@ gen_insn (insn)
int pindex; int pindex;
int i; int i;
char *np, *pp, *p, *q; char *np, *pp, *p, *q;
struct obstack *obstack_ptr;
/* Don't mention instructions whose names are the null string. /* Don't mention instructions whose names are the null string.
They are in the machine description just to be recognized. */ They are in the machine description just to be recognized. */
...@@ -336,8 +335,6 @@ main (argc, argv) ...@@ -336,8 +335,6 @@ main (argc, argv)
char **argv; char **argv;
{ {
rtx desc; rtx desc;
rtx dummy;
rtx *insn_ptr;
FILE *infile; FILE *infile;
register int c; register int c;
......
...@@ -1497,10 +1497,6 @@ __bb_exit_func (void) ...@@ -1497,10 +1497,6 @@ __bb_exit_func (void)
if ((da_file = fopen (ptr->filename, "r")) != 0) if ((da_file = fopen (ptr->filename, "r")) != 0)
{ {
long n_counts = 0; long n_counts = 0;
unsigned char tmp;
int i;
int ret = 0;
if (__read_long (&n_counts, da_file, 8) != 0) if (__read_long (&n_counts, da_file, 8) != 0)
{ {
...@@ -1516,9 +1512,6 @@ __bb_exit_func (void) ...@@ -1516,9 +1512,6 @@ __bb_exit_func (void)
for (i = 0; i < n_counts; i++) for (i = 0; i < n_counts; i++)
{ {
long v = 0; long v = 0;
unsigned char tmp;
int j;
int ret = 0;
if (__read_long (&v, da_file, 8) != 0) if (__read_long (&v, da_file, 8) != 0)
{ {
...@@ -1883,7 +1876,6 @@ __bb_exit_trace_func () ...@@ -1883,7 +1876,6 @@ __bb_exit_trace_func ()
{ {
FILE *file = fopen ("bb.out", "a"); FILE *file = fopen ("bb.out", "a");
struct bb_func *f; struct bb_func *f;
struct bb_edge *e;
struct bb *b; struct bb *b;
if (!file) if (!file)
......
...@@ -247,7 +247,6 @@ static optab init_optab PROTO((enum rtx_code)); ...@@ -247,7 +247,6 @@ static optab init_optab PROTO((enum rtx_code));
static void init_libfuncs PROTO((optab, int, int, char *, int)); static void init_libfuncs PROTO((optab, int, int, char *, int));
static void init_integral_libfuncs PROTO((optab, char *, int)); static void init_integral_libfuncs PROTO((optab, char *, int));
static void init_floating_libfuncs PROTO((optab, char *, int)); static void init_floating_libfuncs PROTO((optab, char *, int));
static void init_complex_libfuncs PROTO((optab, char *, int));
/* Add a REG_EQUAL note to the last insn in SEQ. TARGET is being set to /* Add a REG_EQUAL note to the last insn in SEQ. TARGET is being set to
the result of operation CODE applied to OP0 (and OP1 if it is a binary the result of operation CODE applied to OP0 (and OP1 if it is a binary
...@@ -1385,7 +1384,6 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) ...@@ -1385,7 +1384,6 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
X/(a+ib) */ X/(a+ib) */
rtx divisor; rtx divisor;
rtx real_t, imag_t; rtx real_t, imag_t;
rtx lhs, rhs;
rtx temp1, temp2; rtx temp1, temp2;
/* Don't fetch these from memory more than once. */ /* Don't fetch these from memory more than once. */
...@@ -1518,7 +1516,6 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) ...@@ -1518,7 +1516,6 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
&& (methods == OPTAB_LIB || methods == OPTAB_LIB_WIDEN)) && (methods == OPTAB_LIB || methods == OPTAB_LIB_WIDEN))
{ {
rtx insns; rtx insns;
rtx funexp = binoptab->handlers[(int) mode].libfunc;
rtx op1x = op1; rtx op1x = op1;
enum machine_mode op1_mode = mode; enum machine_mode op1_mode = mode;
rtx value; rtx value;
...@@ -2014,7 +2011,6 @@ expand_unop (mode, unoptab, op0, target, unsignedp) ...@@ -2014,7 +2011,6 @@ expand_unop (mode, unoptab, op0, target, unsignedp)
if (unoptab->handlers[(int) mode].libfunc) if (unoptab->handlers[(int) mode].libfunc)
{ {
rtx insns; rtx insns;
rtx funexp = unoptab->handlers[(int) mode].libfunc;
rtx value; rtx value;
start_sequence (); start_sequence ();
...@@ -2324,7 +2320,6 @@ expand_complex_abs (mode, op0, target, unsignedp) ...@@ -2324,7 +2320,6 @@ expand_complex_abs (mode, op0, target, unsignedp)
if (abs_optab->handlers[(int) mode].libfunc) if (abs_optab->handlers[(int) mode].libfunc)
{ {
rtx insns; rtx insns;
rtx funexp = abs_optab->handlers[(int) mode].libfunc;
rtx value; rtx value;
start_sequence (); start_sequence ();
...@@ -4062,19 +4057,6 @@ init_floating_libfuncs (optable, opname, suffix) ...@@ -4062,19 +4057,6 @@ init_floating_libfuncs (optable, opname, suffix)
init_libfuncs (optable, SFmode, TFmode, opname, suffix); init_libfuncs (optable, SFmode, TFmode, opname, suffix);
} }
/* Initialize the libfunc fields of an entire group of entries in some
optab which correspond to all complex floating modes. The parameters
have the same meaning as similarly named ones for the `init_libfuncs'
routine. (See above). */
static void
init_complex_libfuncs (optable, opname, suffix)
register optab optable;
register char *opname;
register int suffix;
{
init_libfuncs (optable, SCmode, TCmode, opname, suffix);
}
/* Call this once to initialize the contents of the optabs /* Call this once to initialize the contents of the optabs
appropriately for the current target machine. */ appropriately for the current target machine. */
...@@ -4082,7 +4064,11 @@ init_complex_libfuncs (optable, opname, suffix) ...@@ -4082,7 +4064,11 @@ init_complex_libfuncs (optable, opname, suffix)
void void
init_optabs () init_optabs ()
{ {
int i, j; int i;
#ifdef FIXUNS_TRUNC_LIKE_FIX_TRUNC
int j;
#endif
enum insn_code *p; enum insn_code *p;
/* Start by initializing all tables to contain CODE_FOR_nothing. */ /* Start by initializing all tables to contain CODE_FOR_nothing. */
......
...@@ -443,8 +443,6 @@ branch_prob (f, dump_file) ...@@ -443,8 +443,6 @@ branch_prob (f, dump_file)
FILE *dump_file; FILE *dump_file;
{ {
int i, num_blocks; int i, num_blocks;
int dest;
rtx insn;
struct adj_list *arcptr; struct adj_list *arcptr;
int num_arcs, changes, passes; int num_arcs, changes, passes;
int total, prob; int total, prob;
......
...@@ -246,7 +246,7 @@ static void record_asm_reg_life PROTO((rtx,stack, rtx *, char **, ...@@ -246,7 +246,7 @@ static void record_asm_reg_life PROTO((rtx,stack, rtx *, char **,
int, int)); int, int));
static void record_reg_life_pat PROTO((rtx, HARD_REG_SET *, static void record_reg_life_pat PROTO((rtx, HARD_REG_SET *,
HARD_REG_SET *, int)); HARD_REG_SET *, int));
static void get_asm_operand_length PROTO((rtx, int, int *, int *)); static void get_asm_operand_lengths PROTO((rtx, int, int *, int *));
static void record_reg_life PROTO((rtx, int, stack)); static void record_reg_life PROTO((rtx, int, stack));
static void find_blocks PROTO((rtx)); static void find_blocks PROTO((rtx));
static int uses_reg_or_mem PROTO((rtx)); static int uses_reg_or_mem PROTO((rtx));
...@@ -370,7 +370,7 @@ reg_to_stack (first, file) ...@@ -370,7 +370,7 @@ reg_to_stack (first, file)
CLEAR_HARD_REG_SET (stackentry); CLEAR_HARD_REG_SET (stackentry);
{ {
static initialised; static int initialised;
if (!initialised) if (!initialised)
{ {
#if 0 #if 0
...@@ -395,7 +395,7 @@ reg_to_stack (first, file) ...@@ -395,7 +395,7 @@ reg_to_stack (first, file)
{ {
register RTX_CODE prev_code = BARRIER; register RTX_CODE prev_code = BARRIER;
register RTX_CODE code; register RTX_CODE code;
register before_function_beg = 1; register int before_function_beg = 1;
max_uid = 0; max_uid = 0;
blocks = 0; blocks = 0;
...@@ -1771,7 +1771,6 @@ emit_swap_insn (insn, regstack, reg) ...@@ -1771,7 +1771,6 @@ emit_swap_insn (insn, regstack, reg)
if (i1set) if (i1set)
{ {
rtx i2; /* the stack-reg insn prior to I1 */
rtx i1src = *get_true_reg (&SET_SRC (i1set)); rtx i1src = *get_true_reg (&SET_SRC (i1set));
rtx i1dest = *get_true_reg (&SET_DEST (i1set)); rtx i1dest = *get_true_reg (&SET_DEST (i1set));
...@@ -2006,7 +2005,7 @@ compare_for_stack_reg (insn, regstack, pat) ...@@ -2006,7 +2005,7 @@ compare_for_stack_reg (insn, regstack, pat)
&& SET_DEST (PATTERN (cc0_user)) != pc_rtx && SET_DEST (PATTERN (cc0_user)) != pc_rtx
&& GET_CODE (SET_SRC (PATTERN (cc0_user))) == IF_THEN_ELSE) && GET_CODE (SET_SRC (PATTERN (cc0_user))) == IF_THEN_ELSE)
{ {
rtx *dest, src_note; rtx *dest;
dest = get_true_reg (&SET_DEST (PATTERN (cc0_user))); dest = get_true_reg (&SET_DEST (PATTERN (cc0_user)));
......
...@@ -1967,7 +1967,6 @@ computed_jump_p (insn) ...@@ -1967,7 +1967,6 @@ computed_jump_p (insn)
if (GET_CODE (insn) == JUMP_INSN) if (GET_CODE (insn) == JUMP_INSN)
{ {
rtx pat = PATTERN (insn); rtx pat = PATTERN (insn);
int computed_jump = 0;
if (GET_CODE (pat) == PARALLEL) if (GET_CODE (pat) == PARALLEL)
{ {
......
...@@ -750,9 +750,9 @@ actual_hazard (unit, insn, clock, cost) ...@@ -750,9 +750,9 @@ actual_hazard (unit, insn, clock, cost)
int instance = unit; int instance = unit;
int best_cost = actual_hazard_this_instance (unit, instance, insn, int best_cost = actual_hazard_this_instance (unit, instance, insn,
clock, cost); clock, cost);
#if MAX_MULTIPLICITY > 1
int this_cost; int this_cost;
#if MAX_MULTIPLICITY > 1
if (best_cost > cost) if (best_cost > cost)
{ {
for (i = function_units[unit].multiplicity - 1; i > 0; i--) for (i = function_units[unit].multiplicity - 1; i > 0; i--)
......
...@@ -4012,7 +4012,7 @@ add_case_node (low, high, label, duplicate) ...@@ -4012,7 +4012,7 @@ add_case_node (low, high, label, duplicate)
q = &case_stack->data.case_stmt.case_list; q = &case_stack->data.case_stmt.case_list;
p = *q; p = *q;
while (r = *q) while ((r = *q))
{ {
p = r; p = r;
...@@ -4241,7 +4241,7 @@ all_cases_count (type, spareness) ...@@ -4241,7 +4241,7 @@ all_cases_count (type, spareness)
tree type; tree type;
int *spareness; int *spareness;
{ {
HOST_WIDE_INT count, count_high = 0; HOST_WIDE_INT count;
*spareness = 0; *spareness = 0;
switch (TREE_CODE (type)) switch (TREE_CODE (type))
...@@ -4330,8 +4330,6 @@ mark_seen_cases (type, cases_seen, count, sparseness) ...@@ -4330,8 +4330,6 @@ mark_seen_cases (type, cases_seen, count, sparseness)
long count; long count;
int sparseness; int sparseness;
{ {
long i;
tree next_node_to_try = NULL_TREE; tree next_node_to_try = NULL_TREE;
long next_node_offset = 0; long next_node_offset = 0;
...@@ -4459,9 +4457,11 @@ check_for_full_enumeration_handling (type) ...@@ -4459,9 +4457,11 @@ check_for_full_enumeration_handling (type)
tree type; tree type;
{ {
register struct case_node *n; register struct case_node *n;
register struct case_node **l;
register tree chain; register tree chain;
#if 0 /* variable used by 'if 0'ed code below. */
register struct case_node **l;
int all_values = 1; int all_values = 1;
#endif
/* True iff the selector type is a numbered set mode. */ /* True iff the selector type is a numbered set mode. */
int sparseness = 0; int sparseness = 0;
...@@ -4475,7 +4475,6 @@ check_for_full_enumeration_handling (type) ...@@ -4475,7 +4475,6 @@ check_for_full_enumeration_handling (type)
/* The allocated size of cases_seen, in chars. */ /* The allocated size of cases_seen, in chars. */
long bytes_needed; long bytes_needed;
tree t;
if (! warn_switch) if (! warn_switch)
return; return;
......
...@@ -26,6 +26,22 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -26,6 +26,22 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "hash.h" #include "hash.h"
#include "demangle.h" #include "demangle.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#else
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#endif
#define MAX_ITERATIONS 17 #define MAX_ITERATIONS 17
/* Obstack allocation and deallocation routines. */ /* Obstack allocation and deallocation routines. */
......
...@@ -1890,7 +1890,6 @@ immed_double_const (i0, i1, mode) ...@@ -1890,7 +1890,6 @@ immed_double_const (i0, i1, mode)
enum machine_mode mode; enum machine_mode mode;
{ {
register rtx r; register rtx r;
int in_current_obstack;
if (GET_MODE_CLASS (mode) == MODE_INT if (GET_MODE_CLASS (mode) == MODE_INT
|| GET_MODE_CLASS (mode) == MODE_PARTIAL_INT) || GET_MODE_CLASS (mode) == MODE_PARTIAL_INT)
...@@ -1999,7 +1998,6 @@ immed_real_const_1 (d, mode) ...@@ -1999,7 +1998,6 @@ immed_real_const_1 (d, mode)
{ {
union real_extract u; union real_extract u;
register rtx r; register rtx r;
int in_current_obstack;
/* Get the desired `double' value as a sequence of ints /* Get the desired `double' value as a sequence of ints
since that is how they are stored in a CONST_DOUBLE. */ since that is how they are stored in a CONST_DOUBLE. */
...@@ -3537,7 +3535,6 @@ output_constant_pool (fnname, fndecl) ...@@ -3537,7 +3535,6 @@ output_constant_pool (fnname, fndecl)
abort (); abort ();
} }
done: ;
} }
#ifdef ASM_OUTPUT_POOL_EPILOGUE #ifdef ASM_OUTPUT_POOL_EPILOGUE
...@@ -3723,7 +3720,6 @@ output_constant (exp, size) ...@@ -3723,7 +3720,6 @@ output_constant (exp, size)
register int size; register int size;
{ {
register enum tree_code code = TREE_CODE (TREE_TYPE (exp)); register enum tree_code code = TREE_CODE (TREE_TYPE (exp));
rtx x;
if (size == 0) if (size == 0)
return; return;
......
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