blob: 425361fd9b51eefc2334ca0ec8a6ddbc344be987 [file] [log] [blame]
Denis Vlasenkoda8f43f2006-10-09 19:47:38 +00001# ==========================================================================
2# Build system
3# ==========================================================================
4
Denys Vlasenko2c997022018-04-06 18:55:35 +02005# Allow i486 insns (basically, bswap insn)
6# Do not try to tune for 486+ (might add padding)
7CFLAGS += $(call cc-option,-march=i486 -mtune=i386,)
8
9ifeq ($(CONFIG_STACK_OPTIMIZATION_386),y)
Denis Vlasenko65b8cfb2007-07-23 21:05:06 +000010# -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 Vlasenko2c997022018-04-06 18:55:35 +020012CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,)
13endif