From: Kevin Rosenberg Date: Fri, 27 Jun 2008 01:07:06 +0000 (-0600) Subject: Commit mthomas changes to GCC and port those changes to IAR X-Git-Url: http://git.kpe.io/?p=avr_bc100.git;a=commitdiff_plain;h=93e97b1db3d777e5c7536c997046c86f2f3a62f6;hp=65612c4c7df34cdae10f9427ace6fd9e9e430d05 Commit mthomas changes to GCC and port those changes to IAR --- diff --git a/BaseTinyFirmware/GCC/avr458/Makefile b/BaseTinyFirmware/GCC/avr458/Makefile index 844d3db..49c1c04 100644 --- a/BaseTinyFirmware/GCC/avr458/Makefile +++ b/BaseTinyFirmware/GCC/avr458/Makefile @@ -13,7 +13,8 @@ COMMON = -mmcu=$(MCU) ## Compile options common for all C compilation units. CFLAGS = $(COMMON) -CFLAGS += -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums +CFLAGS += -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ffunction-sections +CFLAGS += -fno-inline-small-functions -fno-split-wide-types CFLAGS += -Wall -Wstrict-prototypes -Wundef -Wa,-adhlns=./$(*F).lst CFLAGS += -fno-inline-small-functions -fno-split-wide-types CFLAGS += -MMD -MP -MF dep/$(@F).d @@ -26,7 +27,7 @@ ASMFLAGS += -x assembler-with-cpp -Wa,-gdwarf2 ## Linker flags LDFLAGS = $(COMMON) -LDFLAGS += -Wl,-Map=$(PROJECT).map,--cref -Wl,-relax +LDFLAGS += -Wl,-Map=$(PROJECT).map,--cref -Wl,-relax -Wl,-gc-sections ## Intel Hex file production flags HEX_FLASH_FLAGS = -R .eeprom