m32r short branches may be out of range

Alexandre Oliva aoliva@redhat.com
Wed Sep 24 22:26:00 GMT 2003

I got a testcase from a customer with a switch statement that, with an
old toolchain they're using, triggers an out-of-range branch error in
the assembler.  I couldn't update their testcase such that it would
fail in mainline, and it would hardly make sense, since it's really
impossible to do this kind of test predictably.  So I'm just posting
this patch, that makes sure we won't ever choose a short branch unless
we're absolutely sure it's going to fit.  Assembler relaxations should
take care of narrowing those that we overestimate.

Ok to install?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: m32r-branch-ranges.patch
Type: text/x-patch
Size: 4634 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030924/1a712063/attachment.bin>
-------------- next part --------------

Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

More information about the Gcc-patches mailing list