From 5a1cd9d8227bd2136789cfe60e08a53b8a1a5064 Mon Sep 17 00:00:00 2001 From: danglin Date: Thu, 14 Dec 2006 16:13:59 +0000 Subject: [PATCH] * lib/target-supports.exp (check_weak_available): Use istarget "hppa*-*-hpux10*" instead of regexp. (check_cxa_atexit_available): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119861 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/target-supports.exp | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ee65e74c5812..d716ba64d126 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-12-14 John David Anglin + + * lib/target-supports.exp (check_weak_available): Use istarget + "hppa*-*-hpux10*" instead of regexp. + (check_cxa_atexit_available): Likewise. + 2006-12-14 Richard Guenther PR tree-optimization/30197 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 0346d2c37829..9bf619359cbc 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -163,7 +163,7 @@ proc check_weak_available { } { # HP-UX 10.X doesn't support it - if { [regexp "hppa.*hpux10" $target_triplet] } { + if { [istarget "hppa*-*-hpux10*"] } { return 0 } @@ -978,7 +978,6 @@ proc check_mkfifo_available {} { proc check_cxa_atexit_available { } { global et_cxa_atexit global et_cxa_atexit_target_name - global target_triplet global tool if { ![info exists et_cxa_atexit_target_name] } { @@ -998,7 +997,7 @@ proc check_cxa_atexit_available { } { if [info exists et_cxa_atexit] { verbose "check_cxa_atexit_available: using cached result" 2 - } elseif { [regexp "hppa.*hpux10" $target_triplet] } { + } elseif { [istarget "hppa*-*-hpux10*"] } { # HP-UX 10 doesn't have __cxa_atexit but subsequent test passes. set et_cxa_atexit 0 } else { -- 2.47.3