This is the compiler setting that I'm using,
Jim
7:29:35 **** Incremental Build of configuration Debug for project TEST****
make -j8 all
Building file: ../Source/main/TEST.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mthumb-interwork -mfloat-abi=hard
-mfpu=fpv4-sp-d16 -Og -fmessage-length=0 -fsigned-char -ffunction-sections
-fdata-sections -fsingle-precision-constant -Wunused -Wuninitialized
-Wmissing-declarations -Wlogical-op -Waggregate-return -g3 -nostdinc
-D_AEABI_LC_CTYPE=C -D__STRICT_ANSI__=1 -D_DEBUG=1
-std=gnu11 -Wmissing-prototypes -Wstrict-prototypes
-fno-strict-aliasing -fms-extensions -finline-functions
-MMD -MP -MF"Source/main/BlackBox.d" -MT"Source/main/BlackBox.o"
-c -o "Source/main/TEST.o" "../Source/main/TEST.c"
Finished building: ../Source/main/TEST.c
Building target: MYCODE.elf
Invoking: Cross ARM C Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mthumb-interwork
-mfloat-abi=hard -mfpu=fpv4-sp-d16 -Og -fmessage-length=0
-fsigned-char -ffunction-sections -fdata-sections
-fsingle-precision-constant -Wunused -Wuninitialized
-Wmissing-declarations -Wlogical-op -Waggregate-return
-g3 -T
-nostartfiles -nodefaultlibs -Xlinker --gc-sections
-Wl,-Map,"BlackBox.map" --specs=nano.specs -u _printf_float
-u _scanf_float -Xlinker -static -Xlinker -z -Xlinker muldefs
-o "BlackBox.elf" -Xlinker --start-group
-Xlinker --end-group
Finished building target: MYCODE.elf