Skip to content

Commit 6f74581

Browse files
Federico Fissorecmaglie
Federico Fissore
authored andcommitted
gcc: Adding -w flag to compiler.c.elf.flags in order to avoid printing ISR warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
1 parent fdffb2d commit 6f74581

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hardware/arduino/avr/platform.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ version=1.5.6
1515
compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
1616
compiler.c.cmd=avr-gcc
1717
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD -flto
18-
compiler.c.elf.flags=-Os -Wl,--gc-sections -flto
18+
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
19+
# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
20+
compiler.c.elf.flags=-Os -Wl,--gc-sections -w -flto
1921
compiler.c.elf.cmd=avr-gcc
2022
compiler.S.flags=-c -g -x assembler-with-cpp
2123
compiler.cpp.cmd=avr-g++

0 commit comments

Comments
 (0)