Commit ecb06768 by Kaveh R. Ghazi Committed by Kaveh Ghazi

More warning fixes...

        * final.c (shorten_branches): Add parentheses around +/- in
        operand of &.
        * flow.c (life_analysis): Wrap variable `i' in macro ELIMINABLE_REGS.

From-SVN: r18703
parent 0978790f
Thu Mar 19 10:10:36 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* final.c (shorten_branches): Add parentheses around +/- in
operand of &.
* flow.c (life_analysis): Wrap variable `i' in macro ELIMINABLE_REGS.
Thu Mar 19 09:15:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
* regclass.c (memory_move_secondary_cost): Wrap uses of
......
......@@ -1176,7 +1176,7 @@ shorten_branches (first)
if (log)
{
int align = 1 << log;
int new_address = insn_current_address + align - 1 & -align;
int new_address = (insn_current_address + align - 1) & -align;
insn_lengths[uid] = new_address - insn_current_address;
insn_current_address = new_address;
}
......@@ -1279,7 +1279,7 @@ shorten_branches (first)
if (log > insn_current_align)
{
int align = 1 << log;
int new_address= insn_current_address + align - 1 & -align;
int new_address= (insn_current_address + align - 1) & -align;
insn_lengths[uid] = new_address - insn_current_address;
insn_current_align = log;
insn_current_address = new_address;
......
......@@ -962,9 +962,8 @@ life_analysis (f, nregs, file)
int nregs;
FILE *file;
{
register size_t i;
#ifdef ELIMINABLE_REGS
register size_t i;
static struct {int from, to; } eliminables[] = ELIMINABLE_REGS;
#endif
......
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