diff options
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index e6c99c67d..425361fd9 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile @@ -2,6 +2,12 @@ # Build system # ========================================================================== +# Allow i486 insns (basically, bswap insn) +# Do not try to tune for 486+ (might add padding) +CFLAGS += $(call cc-option,-march=i486 -mtune=i386,) + +ifeq ($(CONFIG_STACK_OPTIMIZATION_386),y) # -mpreferred-stack-boundary=2 is essential in preventing gcc 4.2.x # from aligning stack to 16 bytes. (Which is gcc's way of supporting SSE). -CFLAGS += $(call cc-option,-march=i386 -mpreferred-stack-boundary=2,) +CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,) +endif |