This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: SH: remove -mbigtable option (PR c/4516)
NIIBE Yutaka wrote:
> Namely, those three:
> gcc.c-torture/compile/20001121-1.c, -O0
> gcc.c-torture/execute/920721-4.c execution, -O0
> gcc.c-torture/execute/920909-1.c execution, -O0
Following change fixes this problem.
2001-10-14 NIIBE Yutaka <gniibe@m17n.org>
* final.c (shorten_branches): Set insn_current_address to be aligned.
Index: gcc/final.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/final.c,v
retrieving revision 1.209
diff -c -3 -p -r1.209 final.c
*** gcc/final.c 2001/10/12 10:51:12 1.209
--- gcc/final.c 2001/10/14 10:33:38
*************** shorten_branches (first)
*** 1289,1294 ****
--- 1289,1295 ----
int align = 1 << log;
int new_address = (insn_current_address + align - 1) & -align;
insn_lengths[uid] = new_address - insn_current_address;
+ insn_current_address = new_address;
}
}
--