Turn off new gcc tree-switch-conversion option in 16bit mode.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 9 Apr 2009 01:25:00 +0000 (21:25 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 9 Apr 2009 01:25:00 +0000 (21:25 -0400)
This option emits code which accesses global variables - it wont work
    in 16bit mode.

Makefile

index 1df23b4417e9654486f9accd6c608762c3e82026..1cf7ba264fda54b68324cd535ebc367e1b8b1e36 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,7 @@ COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
 
 override CFLAGS = $(COMMONCFLAGS) -g -DMODE16=0
 CFLAGS16INC = $(COMMONCFLAGS) -DMODE16=1 -fno-jump-tables -fno-defer-pop \
+              $(call cc-option,$(CC),-fno-tree-switch-conversion,) \
               $(call cc-option,$(CC),--param large-stack-frame=4,)
 CFLAGS16INC += -ffunction-sections -fdata-sections
 CFLAGS16 = $(CFLAGS16INC) -g