aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Fissore <f.fissore@arduino.cc>2014-04-29 10:39:25 +0200
committerCristian Maglie <c.maglie@bug.st>2014-06-25 10:14:35 +0200
commit3d2ebd3d8efffb521e1adb7ce0db28b790fa52b8 (patch)
tree5f787a04dd794bb8b2b426802db5296b2d362674
parent4fd704a1a5f563a741966516cb78345135a947fe (diff)
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
-rw-r--r--platform.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform.txt b/platform.txt
index 32c2e17..f2f7ae1 100644
--- a/platform.txt
+++ b/platform.txt
@@ -15,7 +15,9 @@ version=1.5.6
compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
compiler.c.cmd=avr-gcc
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD -flto
-compiler.c.elf.flags=-Os -Wl,--gc-sections -flto
+# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
+# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
+compiler.c.elf.flags=-Os -Wl,--gc-sections -w -flto
compiler.c.elf.cmd=avr-gcc
compiler.S.flags=-c -g -x assembler-with-cpp
compiler.cpp.cmd=avr-g++