diff options
author | shebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-11 03:16:15 +0000 |
---|---|---|
committer | shebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-11 03:16:15 +0000 |
commit | 19cb6b50cf92dfd40eb254e53f1a711c5f5e486d (patch) | |
tree | 2c6aa7c24a8c3a2367f6f050b8747583f29cf4ad /gcc/flow.c | |
parent | a87b05516814cfde90a82ebf86b7ca2f2d142524 (diff) | |
download | gcc-19cb6b50cf92dfd40eb254e53f1a711c5f5e486d.tar.gz |
2001-10-10 Stan Shebs <shebs@apple.com>
* alias.c: Remove uses of "register" specifier in declarations
of arguments and local variables.
* c-common.c: Ditto.
* c-convert.c: Ditto.
* c-decl.c: Ditto.
* c-format.c: Ditto.
* c-semantics.c: Ditto.
* c-typeck.c: Ditto.
* caller-save.c: Ditto.
* calls.c: Ditto.
* cfg.c: Ditto.
* cfgbuild.c: Ditto.
* cfgrtl.c: Ditto.
* collect2.c: Ditto.
* combine.c: Ditto.
* convert.c: Ditto.
* cppexp.c: Ditto.
* cppfiles.c: Ditto.
* cse.c: Ditto.
* dbxout.c: Ditto.
* defaults.h: Ditto.
* df.c: Ditto.
* dwarf2out.c: Ditto.
* dwarfout.c: Ditto.
* emit-rtl.c: Ditto.
* explow.c: Ditto.
* expmed.c: Ditto.
* expr.c: Ditto.
* final.c: Ditto.
* fix-header.c: Ditto.
* floatlib.c: Ditto.
* flow.c: Ditto.
* fold-const.c: Ditto.
* function.c: Ditto.
* gcc.c: Ditto.
* gcse.c: Ditto.
* gen-protos.c: Ditto.
* genattrtab.c: Ditto.
* gencheck.c: Ditto.
* genconfig.c: Ditto.
* genemit.c: Ditto.
* genextract.c: Ditto.
* genflags.c: Ditto.
* gengenrtl.c: Ditto.
* genoutput.c: Ditto.
* genpeep.c: Ditto.
* genrecog.c: Ditto.
* gensupport.c: Ditto.
* global.c: Ditto.
* gmon.c: Ditto.
* graph.c: Ditto.
* haifa-sched.c: Ditto.
* hard-reg-set.h: Ditto.
* hash.c: Ditto.
* integrate.c: Ditto.
* jump.c: Ditto.
* lists.c: Ditto.
* local-alloc.c: Ditto.
* loop.c: Ditto.
* mips-tdump.c: Ditto.
* mips-tfile.c: Ditto.
* optabs.c: Ditto.
* prefix.c: Ditto.
* print-rtl.c: Ditto.
* read-rtl.c: Ditto.
* real.c: Ditto.
* recog.c: Ditto.
* reg-stack.c: Ditto.
* regclass.c: Ditto.
* regmove.c: Ditto.
* reload.c: Ditto.
* reload1.c: Ditto.
* reorg.c: Ditto.
* resource.c: Ditto.
* rtl.c: Ditto.
* rtlanal.c: Ditto.
* scan.c: Ditto.
* sched-deps.c: Ditto.
* sched-rgn.c: Ditto.
* sdbout.c: Ditto.
* simplify-rtx.c: Ditto.
* stmt.c: Ditto.
* stor-layout.c: Ditto.
* toplev.c: Ditto.
* tradcif.y: Ditto.
* tradcpp.c: Ditto.
* tree.c: Ditto.
* unroll.c: Ditto.
* varasm.c: Ditto.
* xcoffout.c: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46173 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flow.c')
-rw-r--r-- | gcc/flow.c | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/gcc/flow.c b/gcc/flow.c index 98b3e4919ee..f0dd62e3149 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -416,7 +416,7 @@ life_analysis (f, file, flags) int flags; { #ifdef ELIMINABLE_REGS - register int i; + int i; static const struct {const int from, to; } eliminables[] = ELIMINABLE_REGS; #endif @@ -1273,7 +1273,7 @@ calculate_global_regs_live (blocks_in, blocks_out, flags) void allocate_bb_life_data () { - register int i; + int i; for (i = 0; i < n_basic_blocks; i++) { @@ -1452,7 +1452,7 @@ propagate_one_insn (pbi, insn) a following memory address. */ #ifdef AUTO_INC_DEC { - register rtx x = single_set (insn); + rtx x = single_set (insn); /* Does this instruction increment or decrement a register? */ if ((flags & PROP_AUTOINC) @@ -1510,7 +1510,7 @@ propagate_one_insn (pbi, insn) if (GET_CODE (insn) == CALL_INSN) { - register int i; + int i; rtx note, cond; cond = NULL_RTX; @@ -1560,7 +1560,7 @@ propagate_one_insn (pbi, insn) if (! insn_is_dead && GET_CODE (insn) == CALL_INSN) { - register int i; + int i; rtx note, cond; cond = NULL_RTX; @@ -1815,7 +1815,7 @@ propagate_block (bb, live, local_set, cond_local_set, flags) if (flags & PROP_REG_INFO) { - register int i; + int i; /* Process the regs live at the end of the block. Mark them as not local to any one basic block. */ @@ -2062,13 +2062,13 @@ libcall_dead_p (pbi, note, insn) if (x) { - register rtx r = SET_SRC (x); + rtx r = SET_SRC (x); if (GET_CODE (r) == REG) { rtx call = XEXP (note, 0); rtx call_pat; - register int i; + int i; /* Find the call insn. */ while (call != insn && GET_CODE (call) != CALL_INSN) @@ -2271,7 +2271,8 @@ mark_set_regs (pbi, x, insn) case PARALLEL: { - register int i; + int i; + for (i = XVECLEN (x, 0) - 1; i >= 0; i--) { rtx sub = XVECEXP (x, 0, i); @@ -2486,8 +2487,8 @@ mark_set_1 (pbi, code, reg, cond, insn, flags) if (flags & (PROP_LOG_LINKS | PROP_REG_INFO | PROP_DEATH_NOTES | PROP_AUTOINC)) { - register rtx y; - register int blocknum = pbi->bb->index; + rtx y; + int blocknum = pbi->bb->index; y = NULL_RTX; if (flags & (PROP_LOG_LINKS | PROP_AUTOINC)) @@ -3331,7 +3332,7 @@ mark_used_reg (pbi, reg, cond, insn) { /* Keep track of which basic block each reg appears in. */ - register int blocknum = pbi->bb->index; + int blocknum = pbi->bb->index; if (REG_BASIC_BLOCK (regno_first) == REG_BLOCK_UNKNOWN) REG_BASIC_BLOCK (regno_first) = blocknum; else if (REG_BASIC_BLOCK (regno_first) != blocknum) @@ -3463,8 +3464,8 @@ mark_used_regs (pbi, x, cond, insn) struct propagate_block_info *pbi; rtx x, cond, insn; { - register RTX_CODE code; - register int regno; + RTX_CODE code; + int regno; int flags = pbi->flags; retry: @@ -3565,7 +3566,7 @@ mark_used_regs (pbi, x, cond, insn) case SET: { - register rtx testreg = SET_DEST (x); + rtx testreg = SET_DEST (x); int mark_dest = 0; /* If storing into MEM, don't show it as being used. But do @@ -3704,8 +3705,8 @@ mark_used_regs (pbi, x, cond, insn) /* Recursively scan the operands of this expression. */ { - register const char * const fmt = GET_RTX_FORMAT (code); - register int i; + const char * const fmt = GET_RTX_FORMAT (code); + int i; for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--) { @@ -3721,7 +3722,7 @@ mark_used_regs (pbi, x, cond, insn) } else if (fmt[i] == 'E') { - register int j; + int j; for (j = 0; j < XVECLEN (x, i); j++) mark_used_regs (pbi, XVECEXP (x, i, j), cond, insn); } @@ -3784,7 +3785,7 @@ try_pre_increment (insn, reg, amount) rtx insn, reg; HOST_WIDE_INT amount; { - register rtx use; + rtx use; /* Nonzero if we can try to make a pre-increment or pre-decrement. For example, addl $4,r1; movl (r1),... can become movl +(r1),... */ @@ -3861,15 +3862,15 @@ try_pre_increment (insn, reg, amount) rtx find_use_as_address (x, reg, plusconst) - register rtx x; + rtx x; rtx reg; HOST_WIDE_INT plusconst; { enum rtx_code code = GET_CODE (x); const char * const fmt = GET_RTX_FORMAT (code); - register int i; - register rtx value = 0; - register rtx tem; + int i; + rtx value = 0; + rtx tem; if (code == MEM && XEXP (x, 0) == reg && plusconst == 0) return x; @@ -3903,7 +3904,7 @@ find_use_as_address (x, reg, plusconst) } else if (fmt[i] == 'E') { - register int j; + int j; for (j = XVECLEN (x, i) - 1; j >= 0; j--) { tem = find_use_as_address (XVECEXP (x, i, j), reg, plusconst); |