Denis Vlasenko | da8f43f | 2006-10-09 19:47:38 +0000 | [diff] [blame] | 1 | # ========================================================================== |
| 2 | # Build system |
| 3 | # ========================================================================== |
| 4 | |
Denys Vlasenko | 2c99702 | 2018-04-06 18:55:35 +0200 | [diff] [blame] | 5 | # Allow i486 insns (basically, bswap insn) |
| 6 | # Do not try to tune for 486+ (might add padding) |
| 7 | CFLAGS += $(call cc-option,-march=i486 -mtune=i386,) |
| 8 | |
| 9 | ifeq ($(CONFIG_STACK_OPTIMIZATION_386),y) |
Denis Vlasenko | 65b8cfb | 2007-07-23 21:05:06 +0000 | [diff] [blame] | 10 | # -mpreferred-stack-boundary=2 is essential in preventing gcc 4.2.x |
| 11 | # from aligning stack to 16 bytes. (Which is gcc's way of supporting SSE). |
Denys Vlasenko | 2c99702 | 2018-04-06 18:55:35 +0200 | [diff] [blame] | 12 | CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,) |
| 13 | endif |