diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/obj-c++.exp | 4 | ||||
-rw-r--r-- | 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 <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 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] } } |