Hi,

it looks like gcc spells bit_FXSR like bit_FXSAVE by mistake, but they also
don't want to fix this (
http://gcc.gnu.org/ml/gcc-patches/2012-10/msg02158.html ). This causes for
example a compiler ifdef in breakpad ( https://breakpad.appspot.com/924002/).

To make things simpler, the attached patch adds support for gcc's spelling
too.

Nico
Index: lib/Headers/cpuid.h
===================================================================
--- lib/Headers/cpuid.h (revision 197300)
+++ lib/Headers/cpuid.h (working copy)
@@ -79,6 +79,7 @@
 #define bit_ACPI        0x00400000
 #define bit_MMX         0x00800000
 #define bit_FXSR        0x01000000
+#define bit_FXSAVE      bit_FXSR
 #define bit_SSE         0x02000000
 #define bit_SSE2        0x04000000
 #define bit_SS          0x08000000
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to