From 252f45aba19698d427e078504cab796df7809072 Mon Sep 17 00:00:00 2001 From: pinskia Date: Sat, 13 Aug 2005 23:36:21 +0000 Subject: [PATCH] 2005-08-13 Andrew Pinski * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103063 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/obj-c++.exp | 4 ++-- gcc/testsuite/lib/objc.exp | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 26827a61ee9..c5f9d51276d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2005-08-13 Andrew Pinski + * 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 + * objc.dg/stubify-2.m: Correct the name of the rtl dump file. 2005-08-13 Andrew Pinski diff --git a/gcc/testsuite/lib/obj-c++.exp b/gcc/testsuite/lib/obj-c++.exp index 476016a7a15..c2a05ee9128 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 9dbbc3c757d..87ccdac6050 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] } } -- 2.11.0