File tree 2 files changed +4
-4
lines changed
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
20
20
# Default "compiler.path" is correct, change only if you want to overidde the initial value
21
21
compiler.path={runtime.tools.avr-gcc.path}/bin/
22
22
compiler.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
24
24
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
25
25
# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
26
26
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
27
27
compiler.c.elf.cmd=avr-gcc
28
28
compiler.S.flags=-c -g -x assembler-with-cpp
29
29
compiler.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
31
31
compiler.ar.cmd=avr-ar
32
32
compiler.ar.flags=rcs
33
33
compiler.objcopy.cmd=avr-objcopy
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ compiler.warning_flags.all=-Wall -Wextra
19
19
20
20
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
21
21
compiler.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
23
23
compiler.c.elf.cmd=arm-none-eabi-gcc
24
24
compiler.c.elf.flags=-Os -Wl,--gc-sections
25
25
compiler.S.cmd=arm-none-eabi-gcc
26
26
compiler.S.flags=-c -g -x assembler-with-cpp -mthumb
27
27
compiler.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
29
29
compiler.ar.cmd=arm-none-eabi-ar
30
30
compiler.ar.flags=rcs
31
31
compiler.objcopy.cmd=arm-none-eabi-objcopy
You can’t perform that action at this time.
0 commit comments