aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-08-13 23:36:21 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-08-13 16:36:21 -0700
commit4f5dce2b358b6b05de478ee0bbbaf8ec4ee9a432 (patch)
treebfcd6b1d49ec7dd9641d71902d08b045b7e43681
parentffacdfa19213349f730e3c5dea70b95c147a827b (diff)
downloadgcc-4f5dce2b358b6b05de478ee0bbbaf8ec4ee9a432.zip
gcc-4f5dce2b358b6b05de478ee0bbbaf8ec4ee9a432.tar.gz
gcc-4f5dce2b358b6b05de478ee0bbbaf8ec4ee9a432.tar.bz2
objc.exp (objc_target_compile): Check for -fgnu-runtime in ${options} instead of [target_info name].
2005-08-13 Andrew Pinski <pinskia@physics.uc.edu> * lib/objc.exp (objc_target_compile): Check for -fgnu-runtime in ${options} instead of [target_info name]. * lib/obj-c++.exp (objc_target_compile): Likewise. From-SVN: r103063
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/lib/obj-c++.exp4
-rw-r--r--gcc/testsuite/lib/objc.exp4
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 26827a6..c5f9d51 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
+ * lib/objc.exp (objc_target_compile): Check for -fgnu-runtime
+ in ${options} instead of [target_info name].
+ * lib/obj-c++.exp (objc_target_compile): Likewise.
+
+2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
+
* objc.dg/stubify-2.m: Correct the name of the rtl dump file.
2005-08-13 Andrew Pinski <pinskia@physics.uc.edu>
diff --git a/gcc/testsuite/lib/obj-c++.exp b/gcc/testsuite/lib/obj-c++.exp
index 476016a..c2a05ee 100644
--- a/gcc/testsuite/lib/obj-c++.exp
+++ b/gcc/testsuite/lib/obj-c++.exp
@@ -306,8 +306,8 @@ proc obj-c++_target_compile { source dest type options } {
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc.a]
if { $libobjc_dir == ""} {
- verbose "see if we have -fgnu-runtime in [target_info name]"
- if [regexp ".*-fgnu-runtime.*" [target_info name]] {
+ verbose "see if we have -fgnu-runtime in options"
+ if [regexp ".*-fgnu-runtime.*" "${options}" ] {
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc-gnu.a]
}
}
diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp
index 9dbbc3c..87ccdac 100644
--- a/gcc/testsuite/lib/objc.exp
+++ b/gcc/testsuite/lib/objc.exp
@@ -159,8 +159,8 @@ proc objc_target_compile { source dest type options } {
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc.a]
if { $libobjc_dir == ""} {
- verbose "see if we have -fgnu-runtime in [target_info name]"
- if [regexp ".*-fgnu-runtime.*" [target_info name]] {
+ verbose "see if we have -fgnu-runtime in options"
+ if [regexp ".*-fgnu-runtime.*" "${options}"] {
set libobjc_dir [lookfor_file ${objcpath} libobjc/.libs/libobjc-gnu.a]
}
}