[Bug target/57583] large switches with jump tables are horribly broken on m68k

glaubitz at physik dot fu-berlin.de gcc-bugzilla@gcc.gnu.org
Mon Jan 2 19:12:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57583

--- Comment #9 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Mikael Pettersson from comment #8)
> Created attachment 40362 [details]
> patch adding -mlong-jump-table-offsets option for m68k
> 
> This is the crude patch I mentioned in an older comment, forward-ported to
> trunk.  It's only a compile-time option for using long offsets, plus needed
> adjustments here and there.

Sounds good. I can give it a try in the following days or weeks and see if I
can get a C code with such large switch statements compiled.


More information about the Gcc-bugs mailing list