File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ compiler.warning_flags.all=-Wall -Wextra
2020# Default "compiler.path" is correct, change only if you want to overidde the initial value
2121compiler.path={runtime.tools.avr-gcc.path}/bin/
2222compiler.c.cmd=avr-gcc
23- compiler.c.flags=-c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -MMD
23+ compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu89 - ffunction-sections -fdata-sections -MMD
2424# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
2525# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
2626compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
2727compiler.c.elf.cmd=avr-gcc
2828compiler.S.flags=-c -g -x assembler-with-cpp
2929compiler.cpp.cmd=avr-g++
30- compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
30+ compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++98 - fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
3131compiler.ar.cmd=avr-ar
3232compiler.ar.flags=rcs
3333compiler.objcopy.cmd=avr-objcopy
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ compiler.warning_flags.all=-Wall -Wextra
1919
2020compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
2121compiler.c.cmd=arm-none-eabi-gcc
22- compiler.c.flags=-c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
22+ compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu89 - ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
2323compiler.c.elf.cmd=arm-none-eabi-gcc
2424compiler.c.elf.flags=-Os -Wl,--gc-sections
2525compiler.S.cmd=arm-none-eabi-gcc
2626compiler.S.flags=-c -g -x assembler-with-cpp -mthumb
2727compiler.cpp.cmd=arm-none-eabi-g++
28- compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
28+ compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++98 - ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
2929compiler.ar.cmd=arm-none-eabi-ar
3030compiler.ar.flags=rcs
3131compiler.objcopy.cmd=arm-none-eabi-objcopy
You can’t perform that action at this time.
0 commit comments