@@ -822,7 +822,7 @@ OBJDUMP_NAME = pic32-objdump
822
822
823
823
Archive utility.
824
824
825
- Defaults to ` avr-ar `
825
+ Defaults to ` avr-ar ` unless you're using toolchain > 4.8.0 in which case we use avr-gcc-ar.
826
826
827
827
** Example:**
828
828
@@ -894,22 +894,22 @@ OPTIMIZATION_LEVEL = 3
894
894
895
895
Controls, * exclusively* , which C standard is to be used for compilation.
896
896
897
- Defaults to ` undefined `
897
+ 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
898
898
899
899
Possible values:
900
900
901
- * With ` avr-gcc 4.3 ` , shipped with the Arduino IDE:
901
+ * With ` avr-gcc 4.3 ` , shipped with the 1.0 Arduino IDE:
902
902
* `undefined`
903
903
* `-std=c99`
904
904
* `-std=gnu89` - This is the default for C code
905
905
* `-std=gnu99`
906
- * With ` avr-gcc 4.7, 4.8 or 4.9 ` , installed by you
906
+ * With ` avr-gcc 4.7, 4.8 or 4.9 ` , installed by you or 1.5+ IDE:
907
907
* `undefined`
908
908
* `-std=c99`
909
909
* `-std=c11`
910
- * `-std=gnu89` - This is the default for C code
910
+ * `-std=gnu89`
911
911
* `-std=gnu99`
912
- * `-std=gnu11`
912
+ * `-std=gnu11 -flto -fno-fat-lto-objects` - This is the default for C code
913
913
914
914
For more information, please refer to the [ Options Controlling C Dialect] ( https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html )
915
915
@@ -929,24 +929,24 @@ CFLAGS_STD = = -std=gnu89
929
929
930
930
Controls, * exclusively* , which C++ standard is to be used for compilation.
931
931
932
- Defaults to ` undefined ` on 1.0 or ` -std=gnu++11 -fno-threadsafe-statics ` on 1.5+
932
+ 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+)
933
933
934
934
Possible values:
935
935
936
- * With ` avr-gcc 4.3 ` , shipped with the Arduino IDE:
936
+ * With ` avr-gcc 4.3 ` , shipped with the 1.0 Arduino IDE:
937
937
* `undefined`
938
938
* `-std=c++98`
939
939
* `-std=c++0x`
940
940
* `-std=gnu++98` - This is the default for C code
941
941
* `-std=gnu++0x`
942
- * With ` avr-gcc 4.7, 4.8 or 4.9 ` , installed by you
942
+ * With ` avr-gcc 4.7, 4.8 or 4.9 ` , installed by you or 1.5+ IDE:
943
943
* `undefined`
944
944
* `-std=c++98`
945
945
* `-std=c++11`
946
946
* `-std=c++1y`
947
947
* `-std=c++14`
948
- * `-std=gnu++98` - This is the default for C++ code
949
- * `-std=gnu++11`
948
+ * `-std=gnu++98`
949
+ * `-std=gnu++11 -fno-threadsafe-statics -flto` - This is the default for C++ code
950
950
* `-std=gnu++1y`
951
951
* `-std=gnu++14`
952
952
@@ -988,7 +988,7 @@ CFLAGS += -my-c-only-flag
988
988
Flags passed to the compiler for files compiled as C++. Add more flags to this
989
989
variable using ` += ` .
990
990
991
- Defaults to all flags required for a typical build.
991
+ Defaults to ` -fpermissive -fno-exceptions `
992
992
993
993
** Example:**
994
994
0 commit comments