Skip to content

Commit 00087c1

Browse files
committed
Reverting -flto flag from AVR core until all compatibility problems are worked out.
For more info: https://groups.google.com/a/arduino.cc/d/msg/developers/21G5w2HbUOg/NRMW6c9OIFUJ
1 parent 3332d28 commit 00087c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hardware/arduino/avr/platform.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ version=1.5.6
1414
# Default "compiler.path" is correct, change only if you want to overidde the initial value
1515
compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
1616
compiler.c.cmd=avr-gcc
17-
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD -flto
17+
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD
1818
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
1919
# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
20-
compiler.c.elf.flags=-w -flto -Os -Wl,--gc-sections
20+
compiler.c.elf.flags=-w -Os -Wl,--gc-sections
2121
compiler.c.elf.cmd=avr-gcc
2222
compiler.S.flags=-c -g -x assembler-with-cpp
2323
compiler.cpp.cmd=avr-g++
24-
compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -flto
24+
compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD
2525
compiler.ar.cmd=avr-ar
2626
compiler.ar.flags=rcs
2727
compiler.objcopy.cmd=avr-objcopy

0 commit comments

Comments
 (0)