@@ -1,5 +1,12 @@
2011-03-11 H.J. Lu <hongjiu.lu@intel.com>
+ * gcc.target/i386/stackalign/return-3.c: Require ia32 instead
+ of ilp32.
+
+ * lib/target-supports.exp (check_effective_target_ia32): New.
+
+2011-03-11 H.J. Lu <hongjiu.lu@intel.com>
+
PR target/47446
* gcc.target/i386/pr47446-3.c: New.
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-skip-if "" { ! { ilp32 && dfp } } { "*" } { "" } } */
+/* { dg-skip-if "" { ! { ia32 && dfp } } { "*" } { "" } } */
/* { dg-options "-msse -std=gnu99 -mpreferred-stack-boundary=2" } */
/* { dg-require-effective-target sse } */
@@ -1492,6 +1492,17 @@ proc check_effective_target_ilp32 { } {
}]
}
+# Return 1 if we're generating ia32 code using default options, 0
+# otherwise.
+
+proc check_effective_target_ia32 { } {
+ return [check_no_compiler_messages ia32 object {
+ int dummy[sizeof (int) == 4
+ && sizeof (void *) == 4
+ && sizeof (long) == 4 ? 1 : -1] = { __i386__ };
+ }]
+}
+
# Return 1 if we're generating x32 code using default options, 0
# otherwise.