mirror of git://gcc.gnu.org/git/gcc.git
Makefile.in (toplev.o): Depend on loop.h.
* Makefile.in (toplev.o): Depend on loop.h. * dwarfout.c: Include tm_p.h. * emit-rtl.c (restore_emit_status): Mark parameter with ATTRIBUTE_UNUSED. * final.c (final_scan_insn): Likewise. * flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find, flow_depth_first_order_compute, flow_loop_pre_header_find, flow_loop_tree_node_add, flow_loops_tree_build, flow_loop_level_compute, flow_loops_level_compute, flow_loop_outside_edge_p): Add prototypes. (recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED. * ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack): Mark with ATTRIBUTE_NORETURN. * hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED. * local-alloc.c (no_conflict_p): Likewise. * loop.c (insert_bct): Hide definitions of variables with hidden usage. (note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED. * regclass.c (memory_move_secondary_cost): Mark variable `mem' with ATTRIBUTE_UNUSED. (record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED. (reg_scan): Likewise. * reload.c (find_reloads): Remove unused variables `changed'. * reload1.c (reload_reg_class_lower): Don't unnecessarily cast away const-ness. (allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED. Remove unused variable `insn'. * toplev.c: Include loop.h. (report_file_and_line): Remove unnecessary prototype. * tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED. * unroll.c (biv_total_increment): Likewise. From-SVN: r31085
This commit is contained in:
parent
ae38a81600
commit
272df862c2
|
|
@ -1,3 +1,52 @@
|
||||||
|
1999-12-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
|
* Makefile.in (toplev.o): Depend on loop.h.
|
||||||
|
|
||||||
|
* dwarfout.c: Include tm_p.h.
|
||||||
|
|
||||||
|
* emit-rtl.c (restore_emit_status): Mark parameter with
|
||||||
|
ATTRIBUTE_UNUSED.
|
||||||
|
|
||||||
|
* final.c (final_scan_insn): Likewise.
|
||||||
|
|
||||||
|
* flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump,
|
||||||
|
flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find,
|
||||||
|
flow_depth_first_order_compute, flow_loop_pre_header_find,
|
||||||
|
flow_loop_tree_node_add, flow_loops_tree_build,
|
||||||
|
flow_loop_level_compute, flow_loops_level_compute,
|
||||||
|
flow_loop_outside_edge_p): Add prototypes.
|
||||||
|
(recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED.
|
||||||
|
|
||||||
|
* ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack):
|
||||||
|
Mark with ATTRIBUTE_NORETURN.
|
||||||
|
|
||||||
|
* hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED.
|
||||||
|
|
||||||
|
* local-alloc.c (no_conflict_p): Likewise.
|
||||||
|
|
||||||
|
* loop.c (insert_bct): Hide definitions of variables with hidden
|
||||||
|
usage.
|
||||||
|
(note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED.
|
||||||
|
|
||||||
|
* regclass.c (memory_move_secondary_cost): Mark variable `mem'
|
||||||
|
with ATTRIBUTE_UNUSED.
|
||||||
|
(record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED.
|
||||||
|
(reg_scan): Likewise.
|
||||||
|
|
||||||
|
* reload.c (find_reloads): Remove unused variables `changed'.
|
||||||
|
|
||||||
|
* reload1.c (reload_reg_class_lower): Don't unnecessarily cast
|
||||||
|
away const-ness.
|
||||||
|
(allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED.
|
||||||
|
Remove unused variable `insn'.
|
||||||
|
|
||||||
|
* toplev.c: Include loop.h.
|
||||||
|
(report_file_and_line): Remove unnecessary prototype.
|
||||||
|
|
||||||
|
* tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED.
|
||||||
|
|
||||||
|
* unroll.c (biv_total_increment): Likewise.
|
||||||
|
|
||||||
Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
|
Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||||
|
|
||||||
* reload1.c (emit_input_reload_insns): Restore old behaviour
|
* reload1.c (emit_input_reload_insns): Restore old behaviour
|
||||||
|
|
|
||||||
|
|
@ -1469,7 +1469,7 @@ diagnostic.o : $(CONFIG_H) system.h $(TREE_H) $(RTL_H) tm_p.h flags.h \
|
||||||
toplev.o : toplev.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) function.h \
|
toplev.o : toplev.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) function.h \
|
||||||
flags.h input.h insn-attr.h xcoffout.h defaults.h output.h \
|
flags.h input.h insn-attr.h xcoffout.h defaults.h output.h \
|
||||||
insn-codes.h insn-config.h intl.h $(RECOG_H) Makefile toplev.h dwarfout.h \
|
insn-codes.h insn-config.h intl.h $(RECOG_H) Makefile toplev.h dwarfout.h \
|
||||||
dwarf2out.h sdbout.h dbxout.h $(EXPR_H) $(BASIC_BLOCK_H) graph.h \
|
dwarf2out.h sdbout.h dbxout.h $(EXPR_H) $(BASIC_BLOCK_H) graph.h loop.h \
|
||||||
except.h $(lang_options_files)
|
except.h $(lang_options_files)
|
||||||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(MAYBE_USE_COLLECT2) \
|
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(MAYBE_USE_COLLECT2) \
|
||||||
-DTARGET_NAME=\"$(target_alias)\" \
|
-DTARGET_NAME=\"$(target_alias)\" \
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ Boston, MA 02111-1307, USA. */
|
||||||
#include "defaults.h"
|
#include "defaults.h"
|
||||||
#include "dwarfout.h"
|
#include "dwarfout.h"
|
||||||
#include "toplev.h"
|
#include "toplev.h"
|
||||||
|
#include "tm_p.h"
|
||||||
|
|
||||||
#if defined(DWARF_TIMESTAMPS)
|
#if defined(DWARF_TIMESTAMPS)
|
||||||
#if !defined(POSIX)
|
#if !defined(POSIX)
|
||||||
|
|
|
||||||
|
|
@ -1580,7 +1580,7 @@ set_new_last_label_num (last)
|
||||||
|
|
||||||
void
|
void
|
||||||
restore_emit_status (p)
|
restore_emit_status (p)
|
||||||
struct function *p;
|
struct function *p ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
last_label_num = 0;
|
last_label_num = 0;
|
||||||
clear_emit_caches ();
|
clear_emit_caches ();
|
||||||
|
|
|
||||||
|
|
@ -2068,9 +2068,9 @@ rtx
|
||||||
final_scan_insn (insn, file, optimize, prescan, nopeepholes)
|
final_scan_insn (insn, file, optimize, prescan, nopeepholes)
|
||||||
rtx insn;
|
rtx insn;
|
||||||
FILE *file;
|
FILE *file;
|
||||||
int optimize;
|
int optimize ATTRIBUTE_UNUSED;
|
||||||
int prescan;
|
int prescan;
|
||||||
int nopeepholes;
|
int nopeepholes ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
#ifdef HAVE_cc0
|
#ifdef HAVE_cc0
|
||||||
rtx set;
|
rtx set;
|
||||||
|
|
|
||||||
20
gcc/flow.c
20
gcc/flow.c
|
|
@ -348,12 +348,24 @@ static void count_reg_references PROTO ((rtx));
|
||||||
static void invalidate_mems_from_autoinc PROTO ((rtx));
|
static void invalidate_mems_from_autoinc PROTO ((rtx));
|
||||||
static void remove_edge PROTO ((edge));
|
static void remove_edge PROTO ((edge));
|
||||||
static void remove_fake_successors PROTO ((basic_block));
|
static void remove_fake_successors PROTO ((basic_block));
|
||||||
|
static void flow_nodes_print PROTO ((const char *, const sbitmap, FILE *));
|
||||||
|
static void flow_exits_print PROTO ((const char *, const edge *, int, FILE *));
|
||||||
|
static void flow_loops_cfg_dump PROTO ((const struct loops *, FILE *));
|
||||||
|
static int flow_loop_nested_p PROTO ((struct loop *, struct loop *));
|
||||||
|
static int flow_loop_exits_find PROTO ((const sbitmap, edge **));
|
||||||
|
static int flow_loop_nodes_find PROTO ((basic_block, basic_block, sbitmap));
|
||||||
|
static int flow_depth_first_order_compute PROTO ((int *));
|
||||||
|
static basic_block flow_loop_pre_header_find PROTO ((basic_block, const sbitmap *));
|
||||||
|
static void flow_loop_tree_node_add PROTO ((struct loop *, struct loop *));
|
||||||
|
static void flow_loops_tree_build PROTO ((struct loops *));
|
||||||
|
static int flow_loop_level_compute PROTO ((struct loop *, int));
|
||||||
|
static int flow_loops_level_compute PROTO ((struct loops *));
|
||||||
|
|
||||||
/* This function is always defined so it can be called from the
|
/* This function is always defined so it can be called from the
|
||||||
debugger, and it is declared extern so we don't get warnings about
|
debugger, and it is declared extern so we don't get warnings about
|
||||||
it being unused. */
|
it being unused. */
|
||||||
void verify_flow_info PROTO ((void));
|
void verify_flow_info PROTO ((void));
|
||||||
|
int flow_loop_outside_edge_p PROTO ((const struct loop *, edge));
|
||||||
|
|
||||||
/* Find basic blocks of the current function.
|
/* Find basic blocks of the current function.
|
||||||
F is the first insn of the function and NREGS the number of register
|
F is the first insn of the function and NREGS the number of register
|
||||||
|
|
@ -5548,8 +5560,8 @@ count_reg_references (x)
|
||||||
|
|
||||||
void
|
void
|
||||||
recompute_reg_usage (f, loop_step)
|
recompute_reg_usage (f, loop_step)
|
||||||
rtx f;
|
rtx f ATTRIBUTE_UNUSED;
|
||||||
int loop_step;
|
int loop_step ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
rtx insn;
|
rtx insn;
|
||||||
int i, max_reg;
|
int i, max_reg;
|
||||||
|
|
@ -6356,7 +6368,7 @@ flow_loops_cfg_dump (loops, file)
|
||||||
|
|
||||||
|
|
||||||
/* Return non-zero if the nodes of LOOP are a subset of OUTER. */
|
/* Return non-zero if the nodes of LOOP are a subset of OUTER. */
|
||||||
int
|
static int
|
||||||
flow_loop_nested_p (outer, loop)
|
flow_loop_nested_p (outer, loop)
|
||||||
struct loop *outer;
|
struct loop *outer;
|
||||||
struct loop *loop;
|
struct loop *loop;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
int ggc_p = 0;
|
int ggc_p = 0;
|
||||||
|
|
||||||
void
|
void ATTRIBUTE_NORETURN
|
||||||
lang_mark_tree (t)
|
lang_mark_tree (t)
|
||||||
union tree_node *t ATTRIBUTE_UNUSED;
|
union tree_node *t ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
|
|
@ -36,7 +36,7 @@ lang_mark_tree (t)
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void ATTRIBUTE_NORETURN
|
||||||
lang_mark_false_label_stack (l)
|
lang_mark_false_label_stack (l)
|
||||||
struct label_node *l ATTRIBUTE_UNUSED;
|
struct label_node *l ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ struct hash_entry *
|
||||||
hash_newfunc (entry, table, p)
|
hash_newfunc (entry, table, p)
|
||||||
struct hash_entry *entry;
|
struct hash_entry *entry;
|
||||||
struct hash_table *table;
|
struct hash_table *table;
|
||||||
hash_table_key p;
|
hash_table_key p ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
if (entry == (struct hash_entry *) NULL)
|
if (entry == (struct hash_entry *) NULL)
|
||||||
entry = ((struct hash_entry *)
|
entry = ((struct hash_entry *)
|
||||||
|
|
|
||||||
|
|
@ -2148,7 +2148,7 @@ post_mark_life (regno, mode, life, birth, death)
|
||||||
|
|
||||||
static int
|
static int
|
||||||
no_conflict_p (insn, r0, r1)
|
no_conflict_p (insn, r0, r1)
|
||||||
rtx insn, r0, r1;
|
rtx insn, r0 ATTRIBUTE_UNUSED, r1;
|
||||||
{
|
{
|
||||||
int ok = 0;
|
int ok = 0;
|
||||||
rtx note = find_reg_note (insn, REG_LIBCALL, NULL_RTX);
|
rtx note = find_reg_note (insn, REG_LIBCALL, NULL_RTX);
|
||||||
|
|
|
||||||
|
|
@ -9344,6 +9344,7 @@ insert_bct (loop_start, loop_end, loop_info)
|
||||||
int i;
|
int i;
|
||||||
unsigned HOST_WIDE_INT n_iterations;
|
unsigned HOST_WIDE_INT n_iterations;
|
||||||
|
|
||||||
|
#if 0
|
||||||
int increment_direction, compare_direction;
|
int increment_direction, compare_direction;
|
||||||
|
|
||||||
/* If the loop condition is <= or >=, the number of iteration
|
/* If the loop condition is <= or >=, the number of iteration
|
||||||
|
|
@ -9351,6 +9352,7 @@ insert_bct (loop_start, loop_end, loop_info)
|
||||||
int add_iteration = 0;
|
int add_iteration = 0;
|
||||||
|
|
||||||
enum machine_mode loop_var_mode = word_mode;
|
enum machine_mode loop_var_mode = word_mode;
|
||||||
|
#endif
|
||||||
|
|
||||||
int loop_num = uid_loop_num [INSN_UID (loop_start)];
|
int loop_num = uid_loop_num [INSN_UID (loop_start)];
|
||||||
|
|
||||||
|
|
@ -10020,7 +10022,7 @@ struct note_reg_stored_arg
|
||||||
is equal to ARG. */
|
is equal to ARG. */
|
||||||
static void
|
static void
|
||||||
note_reg_stored (x, setter, arg)
|
note_reg_stored (x, setter, arg)
|
||||||
rtx x, setter;
|
rtx x, setter ATTRIBUTE_UNUSED;
|
||||||
void *arg;
|
void *arg;
|
||||||
{
|
{
|
||||||
struct note_reg_stored_arg *t = (struct note_reg_stored_arg *)arg;
|
struct note_reg_stored_arg *t = (struct note_reg_stored_arg *)arg;
|
||||||
|
|
|
||||||
|
|
@ -503,7 +503,9 @@ memory_move_secondary_cost (mode, class, in)
|
||||||
enum reg_class altclass;
|
enum reg_class altclass;
|
||||||
int partial_cost = 0;
|
int partial_cost = 0;
|
||||||
/* We need a memory reference to feed to SECONDARY... macros. */
|
/* We need a memory reference to feed to SECONDARY... macros. */
|
||||||
rtx mem = top_of_stack[(int) mode];
|
/* mem may be unused even if the SECONDARY_ macros are defined. */
|
||||||
|
rtx mem ATTRIBUTE_UNUSED = top_of_stack[(int) mode];
|
||||||
|
|
||||||
|
|
||||||
if (in)
|
if (in)
|
||||||
{
|
{
|
||||||
|
|
@ -1204,7 +1206,7 @@ record_reg_classes (n_alts, n_ops, ops, modes, subreg_changes_size,
|
||||||
int n_ops;
|
int n_ops;
|
||||||
rtx *ops;
|
rtx *ops;
|
||||||
enum machine_mode *modes;
|
enum machine_mode *modes;
|
||||||
char *subreg_changes_size;
|
char *subreg_changes_size ATTRIBUTE_UNUSED;
|
||||||
const char **constraints;
|
const char **constraints;
|
||||||
rtx insn;
|
rtx insn;
|
||||||
{
|
{
|
||||||
|
|
@ -2101,7 +2103,7 @@ void
|
||||||
reg_scan (f, nregs, repeat)
|
reg_scan (f, nregs, repeat)
|
||||||
rtx f;
|
rtx f;
|
||||||
int nregs;
|
int nregs;
|
||||||
int repeat;
|
int repeat ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
register rtx insn;
|
register rtx insn;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2393,7 +2393,6 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
|
||||||
int goal_alternative_swapped;
|
int goal_alternative_swapped;
|
||||||
int best;
|
int best;
|
||||||
int commutative;
|
int commutative;
|
||||||
int changed;
|
|
||||||
char operands_match[MAX_RECOG_OPERANDS][MAX_RECOG_OPERANDS];
|
char operands_match[MAX_RECOG_OPERANDS][MAX_RECOG_OPERANDS];
|
||||||
rtx substed_operand[MAX_RECOG_OPERANDS];
|
rtx substed_operand[MAX_RECOG_OPERANDS];
|
||||||
rtx body = PATTERN (insn);
|
rtx body = PATTERN (insn);
|
||||||
|
|
|
||||||
|
|
@ -1441,7 +1441,7 @@ reload_reg_class_lower (r1p, r2p)
|
||||||
const PTR r1p;
|
const PTR r1p;
|
||||||
const PTR r2p;
|
const PTR r2p;
|
||||||
{
|
{
|
||||||
register int r1 = *(short *)r1p, r2 = *(short *)r2p;
|
register int r1 = *(const short *)r1p, r2 = *(const short *)r2p;
|
||||||
register int t;
|
register int t;
|
||||||
|
|
||||||
/* Consider required reloads before optional ones. */
|
/* Consider required reloads before optional ones. */
|
||||||
|
|
@ -4900,11 +4900,10 @@ set_reload_reg (i, r)
|
||||||
|
|
||||||
static int
|
static int
|
||||||
allocate_reload_reg (chain, r, last_reload)
|
allocate_reload_reg (chain, r, last_reload)
|
||||||
struct insn_chain *chain;
|
struct insn_chain *chain ATTRIBUTE_UNUSED;
|
||||||
int r;
|
int r;
|
||||||
int last_reload;
|
int last_reload;
|
||||||
{
|
{
|
||||||
rtx insn = chain->insn;
|
|
||||||
int i, pass, count;
|
int i, pass, count;
|
||||||
|
|
||||||
/* If we put this reload ahead, thinking it is a group,
|
/* If we put this reload ahead, thinking it is a group,
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ Boston, MA 02111-1307, USA. */
|
||||||
#include "intl.h"
|
#include "intl.h"
|
||||||
#include "ggc.h"
|
#include "ggc.h"
|
||||||
#include "graph.h"
|
#include "graph.h"
|
||||||
|
#include "loop.h"
|
||||||
|
|
||||||
#ifdef DWARF_DEBUGGING_INFO
|
#ifdef DWARF_DEBUGGING_INFO
|
||||||
#include "dwarfout.h"
|
#include "dwarfout.h"
|
||||||
|
|
@ -167,7 +168,6 @@ static void dump_rtl PROTO((const char *, tree, void (*) (FILE *, rtx), rtx));
|
||||||
static void clean_dump_file PROTO((const char *));
|
static void clean_dump_file PROTO((const char *));
|
||||||
static void compile_file PROTO((char *));
|
static void compile_file PROTO((char *));
|
||||||
static void display_help PROTO ((void));
|
static void display_help PROTO ((void));
|
||||||
static void report_file_and_line PROTO ((const char *, int, int));
|
|
||||||
static void mark_file_stack PROTO ((void *));
|
static void mark_file_stack PROTO ((void *));
|
||||||
|
|
||||||
static void decode_d_option PROTO ((const char *));
|
static void decode_d_option PROTO ((const char *));
|
||||||
|
|
|
||||||
|
|
@ -3314,7 +3314,7 @@ build_decl (code, name, type)
|
||||||
|
|
||||||
tree
|
tree
|
||||||
build_block (vars, tags, subblocks, supercontext, chain)
|
build_block (vars, tags, subblocks, supercontext, chain)
|
||||||
tree vars, tags, subblocks, supercontext, chain;
|
tree vars, tags ATTRIBUTE_UNUSED, subblocks, supercontext, chain;
|
||||||
{
|
{
|
||||||
register tree block = make_node (BLOCK);
|
register tree block = make_node (BLOCK);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2381,7 +2381,7 @@ fold_rtx_mult_add (mult1, mult2, add1, mode)
|
||||||
rtx
|
rtx
|
||||||
biv_total_increment (bl, loop_start, loop_end)
|
biv_total_increment (bl, loop_start, loop_end)
|
||||||
struct iv_class *bl;
|
struct iv_class *bl;
|
||||||
rtx loop_start, loop_end;
|
rtx loop_start ATTRIBUTE_UNUSED, loop_end ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
struct induction *v;
|
struct induction *v;
|
||||||
rtx result;
|
rtx result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue