[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Error: Adjusted signed .word (0xc244) overflows: `switch'-statement too large.

On 12/12/2016 11:40 PM, John Paul Adrian Glaubitz wrote:
> So, there are actually two related bug reports.
> gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57583

The suggested patch in this bug report actually works. With the patch applied
and with -mlong-jump-table-offsets in CFLAGS, I can build the offending C++
code file in mednafen.

Can we get this patch applied or is there anything that speaks against doing
so? Since the behavior is enabled with an option (and therefore opt-in), I
don't think there is much that we can break doing so, is there?

An improved version would probably use the long jumps automatically, depending
on the size of the switch statements, wouldn't it?


 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply to: