svn@coreboot.org wrote:
+++ trunk/src/include/smp/spinlock.h 2009-11-12 16:38:03 UTC (rev 4939)
..
-/* Most GCC versions have a nasty bug with empty initializers */ -#if (__GNUC__ > 2)
Maybe add
#if __GNUC__ < 3 #error Sorry, at least gcc-3 is needed to build coreboot. #endif
?
//Peter
On Thu, Nov 12, 2009 at 9:47 AM, Peter Stuge peter@stuge.se wrote:
svn@coreboot.org wrote:
+++ trunk/src/include/smp/spinlock.h 2009-11-12 16:38:03 UTC (rev 4939)
..
-/* Most GCC versions have a nasty bug with empty initializers */ -#if (__GNUC__ > 2)
Maybe add
#if __GNUC__ < 3 #error Sorry, at least gcc-3 is needed to build coreboot. #endif
Rather than sprinkle this kind of stuff all over the .h files we should just tell people: use the known-good crosstool
because we know that not even this test is sufficient
ron
On Thu, Nov 12, 2009 at 10:47 AM, Peter Stuge peter@stuge.se wrote:
svn@coreboot.org wrote:
+++ trunk/src/include/smp/spinlock.h 2009-11-12 16:38:03 UTC (rev 4939)
..
-/* Most GCC versions have a nasty bug with empty initializers */ -#if (__GNUC__ > 2)
Maybe add
#if __GNUC__ < 3 #error Sorry, at least gcc-3 is needed to build coreboot. #endif
?
I took out the part that used to break some versions of gcc. Now there is a blank line instead of an empty initializer. Is there something I'm missing that will break gcc < 3?
Thanks, Myles