From 64828ce62c00973fc933afb27a473f31dda164f5 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Sat, 11 Jan 2014 13:39:58 +0100 Subject: New common AVR toolchain --- platform.txt | 2 -- 1 file changed, 2 deletions(-) (limited to 'platform.txt') diff --git a/platform.txt b/platform.txt index 58af56b..575a10b 100644 --- a/platform.txt +++ b/platform.txt @@ -77,8 +77,6 @@ recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).* tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf -tools.avrdude.cmd.path.linux={runtime.ide.path}/hardware/tools/avrdude -tools.avrdude.config.path.linux={runtime.ide.path}/hardware/tools/avrdude.conf tools.avrdude.upload.params.verbose=-v -v -v -v tools.avrdude.upload.params.quiet=-q -q -- cgit v1.2.3-18-g5258 From 4fd704a1a5f563a741966516cb78345135a947fe Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Mon, 28 Apr 2014 11:04:17 +0200 Subject: Enabling link-time optimization. See #660 --- platform.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'platform.txt') diff --git a/platform.txt b/platform.txt index 575a10b..32c2e17 100644 --- a/platform.txt +++ b/platform.txt @@ -14,12 +14,12 @@ version=1.5.6 # Default "compiler.path" is correct, change only if you want to overidde the initial value 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 -compiler.c.elf.flags=-Os -Wl,--gc-sections +compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD -flto +compiler.c.elf.flags=-Os -Wl,--gc-sections -flto compiler.c.elf.cmd=avr-gcc compiler.S.flags=-c -g -x assembler-with-cpp compiler.cpp.cmd=avr-g++ -compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD +compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -flto compiler.ar.cmd=avr-ar compiler.ar.flags=rcs compiler.objcopy.cmd=avr-objcopy -- cgit v1.2.3-18-g5258 From 3d2ebd3d8efffb521e1adb7ce0db28b790fa52b8 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Tue, 29 Apr 2014 10:39:25 +0200 Subject: 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 --- platform.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'platform.txt') 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++ -- cgit v1.2.3-18-g5258 From 29fce3601d2bbd1c5159995d360c64db9a42fd96 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Wed, 30 Apr 2014 19:35:59 +0200 Subject: Fixed compilation error when targetting Mega. Error is caused by #2039 and this fix is just a workaround --- platform.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform.txt') diff --git a/platform.txt b/platform.txt index f2f7ae1..d81aef6 100644 --- a/platform.txt +++ b/platform.txt @@ -17,7 +17,7 @@ compiler.c.cmd=avr-gcc compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD -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.flags=-w -flto -Os -Wl,--gc-sections compiler.c.elf.cmd=avr-gcc compiler.S.flags=-c -g -x assembler-with-cpp compiler.cpp.cmd=avr-g++ -- cgit v1.2.3-18-g5258