3
0

Makefile 996 B

123456789101112131415161718192021
  1. # ==========================================================================
  2. # Build system
  3. # ==========================================================================
  4. # Allow i486 insns (basically, bswap insn)
  5. # Do not try to tune for 486+ (might add padding)
  6. CFLAGS += $(call cc-option,-march=i486 -mtune=i386,)
  7. ifeq ($(CONFIG_STACK_OPTIMIZATION_386),y)
  8. # -mpreferred-stack-boundary=2 is essential in preventing gcc 4.2.x
  9. # from aligning stack to 16 bytes. (Which is gcc's way of supporting SSE).
  10. CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,)
  11. endif
  12. # "Control how GCC aligns variables.
  13. # Supported values for type are compat uses increased alignment value
  14. # compatible uses GCC 4.8 and earlier, abi uses alignment value as specified by the psABI,
  15. # and cacheline uses increased alignment value to match the cache line size.
  16. # compat is the default."
  17. # "abi" seems to be somewhat successful in preventing oversealous data alignment.
  18. CFLAGS += $(call cc-option,-malign-data=abi,)