2006-10-10 01:17:38 +05:30
|
|
|
# ==========================================================================
|
|
|
|
# Build system
|
|
|
|
# ==========================================================================
|
|
|
|
|
2018-04-06 22:25:35 +05:30
|
|
|
# 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)
|
2007-07-24 02:35:06 +05:30
|
|
|
# -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).
|
2018-04-06 22:25:35 +05:30
|
|
|
CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,)
|
|
|
|
endif
|
2020-12-14 10:23:45 +05:30
|
|
|
|
|
|
|
# "Control how GCC aligns variables.
|
|
|
|
# Supported values for type are compat uses increased alignment value
|
|
|
|
# compatible uses GCC 4.8 and earlier, abi uses alignment value as specified by the psABI,
|
|
|
|
# and cacheline uses increased alignment value to match the cache line size.
|
|
|
|
# compat is the default."
|
|
|
|
# "abi" seems to be somewhat successful in preventing oversealous data alignment.
|
|
|
|
CFLAGS += $(call cc-option,-malign-data=abi,)
|