[PATCH] Disable bprob.exp for cross targets

Eric Christopher echristo@redhat.com
Fri Sep 19 02:36:00 GMT 2003


This has been bugging me for a while and can probably be reenabled
whenever anyone writes bprob support for cross targets. Right now though
it's just noise.

OK? Objections?

-eric

-- 
Eric Christopher <echristo@redhat.com>

2003-09-18  Eric Christopher  <echristo@redhat.com>

	* g++.dg/bprob/bprob.exp: Only run for native targets.
	* gcc.misc-tests/bprob.exp: Ditto.
	* g77.dg/bprob/bprob.exp: Ditto.


Index: g++.dg/bprob/bprob.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/bprob/bprob.exp,v
retrieving revision 1.4
diff -u -p -w -r1.4 bprob.exp
--- g++.dg/bprob/bprob.exp	9 Jul 2003 14:57:20 -0000	1.4
+++ g++.dg/bprob/bprob.exp	19 Sep 2003 02:32:46 -0000
@@ -17,12 +17,8 @@
 # Test the functionality of programs compiled with profile-directed
block
 # ordering using -fprofile-arcs followed by -fbranch-probabilities.
 
-# Some targets don't have any implementation of __bb_init_func or are
-# missing other needed machinery.
-if { [istarget mmix-*-*]
-     || [istarget cris-*-*] } {
-    return
-}
+# Don't run for cross targets.
+if [isnative] then {
 
 # The procedures in profopt.exp need these parameters.
 set tool g++
@@ -59,4 +55,6 @@ foreach src [lsort [glob -nocomplain $sr
     }
 
     profopt-execute $src
+}
+
 }
Index: g77.dg/bprob/bprob.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g77.dg/bprob/bprob.exp,v
retrieving revision 1.4
diff -u -p -w -r1.4 bprob.exp
--- g77.dg/bprob/bprob.exp	9 Jul 2003 14:57:20 -0000	1.4
+++ g77.dg/bprob/bprob.exp	19 Sep 2003 02:32:47 -0000
@@ -17,12 +17,8 @@
 # Test the functionality of programs compiled with profile-directed
block
 # ordering using -fprofile-arcs followed by -fbranch-probabilities.
 
-# Some targets don't have any implementation of __bb_init_func or are
-# missing other needed machinery.
-if { [istarget mmix-*-*]
-     || [istarget cris-*-*] } {
-    return
-}
+# Don't run for cross targets.
+if [isnative] then {
 
 # The procedures in profopt.exp need these parameters.
 set tool g77
@@ -55,4 +51,6 @@ foreach src [lsort [glob -nocomplain $sr
     }
 
     profopt-execute $src
+}
+
 }
Index: gcc.misc-tests/bprob.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.misc-tests/bprob.exp,v
retrieving revision 1.5
diff -u -p -w -r1.5 bprob.exp
--- gcc.misc-tests/bprob.exp	9 Jul 2003 14:57:20 -0000	1.5
+++ gcc.misc-tests/bprob.exp	19 Sep 2003 02:32:48 -0000
@@ -17,13 +17,9 @@
 # Test the functionality of programs compiled with profile-directed
block
 # ordering using -fprofile-arcs followed by -fbranch-probabilities.
 
-# Some targets don't have any implementation of __bb_init_func or are
-# missing other needed machinery.
-if { [istarget mmix-*-*]
-     || [istarget cris-*-*]
-     || [istarget h8300-*-*] } {
-    return
-}
+# Don't run for cross targets.
+
+if [isnative] then {
 
 # The procedures in profopt.exp need these parameters.
 set tool gcc
@@ -56,4 +52,6 @@ foreach src [lsort [glob -nocomplain $sr
     }
 
     profopt-execute $src
+}
+
 }




More information about the Gcc-patches mailing list