OSDN Git Service

* g++.old-deja/g++.jason/thunk3.C: XFAIL on m32r*-*.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / 20020720-1.x
index d6e43e7..0afd91a 100644 (file)
@@ -9,11 +9,31 @@
 #     for example the comparison insn takes 0.0 as an operand, the
 #     combiner is able to see all intermediate instructions simultaneously
 #     and can make the optimization.
-if { [istarget "mips*-*-*"] || [istarget "xtensa-*-*"] \
-     || [istarget "sh-*-*"] \
-     || [istarget "arm*-*-*"] || [istarget "strongarm*-*-*"] \
-     || [istarget "xscale*-*-*"] } {
-    return 1
+
+# Don't XFAIL at -O0, that should never fail.
+if { [istarget "sparc*-*-*"] } {
+    set torture_eval_before_compile {
+        global compiler_conditional_xfail_data
+        set compiler_conditional_xfail_data {
+            "PR opt/10348" \
+            { "*-*-*" } \
+            { "-fpic" "-fPIC" } \
+            { "-O0" }
+        }
+    }
+    return 0
+}
+
+set torture_eval_before_compile {
+    global compiler_conditional_xfail_data
+    set compiler_conditional_xfail_data {
+        "This test fails to optimize completely on certain platforms." \
+        { "xtensa-*-*" "sh-*-*" "arm*-*-*" "strongarm*-*-*" "xscale*-*-*" \
+         "h8300*-*-*" "frv-*-*" "powerpc*-*-*" "rs6000-*-*" "bfin*-*" \
+         "m32r*-*" "avr-*-*"} \
+        { "*" } \
+        { "-O0" }
+    }
 }
 
 return 0