[xiph-commits] r17249 - experimental/derf/theora-ptalarbvorm/lib/x86
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Fri May 28 00:09:00 PDT 2010
Author: tterribe
Date: 2010-05-28 00:09:00 -0700 (Fri, 28 May 2010)
New Revision: 17249
Modified:
experimental/derf/theora-ptalarbvorm/lib/x86/x86int.h
Log:
Fix new OC_MEM_OFFS macro to allow compilion with gcc 3.x.
This will generate warnings in the assembler, but the code should work.
Modified: experimental/derf/theora-ptalarbvorm/lib/x86/x86int.h
===================================================================
--- experimental/derf/theora-ptalarbvorm/lib/x86/x86int.h 2010-05-28 06:29:12 UTC (rev 17248)
+++ experimental/derf/theora-ptalarbvorm/lib/x86/x86int.h 2010-05-28 07:09:00 UTC (rev 17249)
@@ -24,8 +24,17 @@
/*Memory operands do not always include an offset.
To avoid warnings, we force an offset with %H (which adds 8).*/
-#define OC_MEM_OFFS(_offs,_name) \
+# if defined(__GNUC_PREREQ)
+# if __GNUC_PREREQ(4,0)
+# define OC_MEM_OFFS(_offs,_name) \
OC_M2STR(_offs-8+%H[_name])
+# endif
+# endif
+/*If your gcc version does't support %H, then you get to suffer the warnings.*/
+# if !defined(OC_MEM_OFFS)
+# define OC_MEM_OFFS(_offs,_name) \
+ OC_M2STR(_offs+%[_name])
+# endif
/*Declare an array operand with an exact size.
This tells gcc we're going to clobber this memory region, without having to
More information about the commits
mailing list