* lib/target-supports.exp (check_effective_target_maybe_x32): New
proc.
* gcc.target/i386/pr54457.c: Use dg-require-effective-target
maybe_x32.
* gcc.target/i386/pr53249.c: Likewise.
Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>
From-SVN: r193126
+2012-11-03 H.J. Lu <hjl.tools@gmail.com>
+ Jack Howarth <howarth@bromo.med.uc.edu>
+
+ * lib/target-supports.exp (check_effective_target_maybe_x32): New
+ proc.
+ * gcc.target/i386/pr54457.c: Use dg-require-effective-target
+ maybe_x32.
+ * gcc.target/i386/pr53249.c: Likewise.
+
2012-11-03 Andrew Pinski <apinski@cavium.com>
* gcc.target/mips/octeon-bbit-3.c: Change the second call to abort to
/* { dg-do compile { target { ! { ia32 } } } } */
+/* { dg-require-effective-target maybe_x32 } */
/* { dg-options "-O2 -mx32 -ftls-model=initial-exec -maddress-mode=short" } */
struct gomp_task
/* { dg-do compile { target { ! { ia32 } } } } */
+/* { dg-require-effective-target maybe_x32 } */
/* { dg-options "-O2 -mx32 -maddress-mode=short" } */
extern char array[40];
return [info exists ENABLE_LTO]
}
+# Return 1 if -mx32 -maddress-mode=short can compile, 0 otherwise.
+
+proc check_effective_target_maybe_x32 { } {
+ return [check_no_compiler_messages maybe_x32 object {
+ void foo (void) {}
+ } "-mx32 -maddress-mode=short"]
+}
+
# Return 1 if this target supports the -fsplit-stack option, 0
# otherwise.