angstrom-uclibc.inc: Re-enable optimization for AVR32 now that we switched to gcc...
authorGeoffrey Wossum <gwossum@acm.org>
Tue, 29 Apr 2008 23:59:54 +0000 (23:59 +0000)
committerLeon Woestenberg <leon.woestenberg@gmail.com>
Tue, 29 Apr 2008 23:59:54 +0000 (23:59 +0000)
conf/distro/include/angstrom-uclibc.inc

index 7e8e60d..7c713e6 100644 (file)
@@ -16,8 +16,15 @@ FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-reg
 BUILD_OPTIMIZATION = "-Os"
 
 #Gcc will die with 'internal consistency error when using the above optimizations
-FULL_OPTIMIZATION_avr32 = ""
-BUILD_OPTIMIZATION_avr32 = ""
+#with gcc-4.2.1-atmel.1.0.3 (and probably most other avr32 gcc ports).
+#However, some packages require optimizations to compile (e.g. libmad).
+#It appears the guilty optimization is "-frename-registers", leaving that one 
+#out allows the build to proceed normally.  -fexpensive-optimizations may be OK,
+#it was removed while debugging an issue that ultimately turned out to be due
+#to the ICE fixed by gcc-pr32889.patch.  It needs to be tested again. 
+#Note that this testing was done without the gcc-pr32889.patch.
+FULL_OPTIMIZATION_avr32 = "-Os -fomit-frame-pointer"
+
 
 CXXFLAGS += "-fvisibility-inlines-hidden"