From fe020380b604ea514594360eb77baaccd6533f68 Mon Sep 17 00:00:00 2001 From: Simon John Date: Tue, 11 Oct 2016 15:23:36 +0100 Subject: Changed LTO support check to avr-gcc > 4.9.0 as the 4.8.1 bundled with the IDE prior to 1.6.10 doesn't support LTO or plugins. Fixes Issue #456 So essentially LTO support will only be enabled with avr-gcc 4.9.2 which comes with 1.6.10 or later and Debian, Ubuntu etc; not 4.8.1 which comes with IDE 1.6.9 and a few earlier versions. Tested with: * 1.6.8 (avr-gcc 4.8.1 which doesn't support LTO so uses avr-ar and doesn't set LTO flags) * 1.6.12 (avr-gcc 4.9.2 which supports LTO so uses avr-gcc-ar and sets LTO flags) * 1.0.5 with Debian avr-gcc 4.9.2 (supports LTO so uses avr-gcc-ar and sets LTO flags) --- arduino-mk-vars.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arduino-mk-vars.md') diff --git a/arduino-mk-vars.md b/arduino-mk-vars.md index 5085966..8c4d302 100644 --- a/arduino-mk-vars.md +++ b/arduino-mk-vars.md @@ -822,7 +822,7 @@ OBJDUMP_NAME = pic32-objdump Archive utility. -Defaults to `avr-ar` unless you're using toolchain > 4.8.0 in which case we use avr-gcc-ar. +Defaults to `avr-ar` unless you're using toolchain > 4.9.0 in which case we use avr-gcc-ar. **Example:** @@ -894,7 +894,7 @@ OPTIMIZATION_LEVEL = 3 Controls, *exclusively*, which C standard is to be used for compilation. -Defaults to `undefined` on 1.0.x or `-std=gnu11 -flto -fno-fat-lto-objects` on 1.5+ or if you install AVR toolchain > 4.8.0 +Defaults to `undefined` on 1.0.x or `-std=gnu11 -flto -fno-fat-lto-objects` on 1.5+ or if you install AVR toolchain > 4.9.0 Possible values: @@ -929,7 +929,7 @@ CFLAGS_STD = = -std=gnu89 Controls, *exclusively*, which C++ standard is to be used for compilation. -Defaults to `undefined` on 1.0 or `-std=gnu++11 -fno-threadsafe-statics -flto` on AVR toolchain > 4.8.0 (e.g. IDE 1.5+) +Defaults to `undefined` on 1.0 or `-std=gnu++11 -fno-threadsafe-statics -flto` on AVR toolchain > 4.9.0 (e.g. IDE 1.6.10+) Possible values: -- cgit v1.2.3