Commit 60784de8 by John David Anglin Committed by John David Anglin

target-supports.exp (check_weak_available): Use istarget "hppa*-*-hpux10*" instead of regexp.

	* lib/target-supports.exp (check_weak_available): Use istarget
	"hppa*-*-hpux10*" instead of regexp.
	(check_cxa_atexit_available): Likewise.

From-SVN: r119861
parent 28f4586b
2006-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* lib/target-supports.exp (check_weak_available): Use istarget
"hppa*-*-hpux10*" instead of regexp.
(check_cxa_atexit_available): Likewise.
2006-12-14 Richard Guenther <rguenther@suse.de> 2006-12-14 Richard Guenther <rguenther@suse.de>
PR tree-optimization/30197 PR tree-optimization/30197
...@@ -163,7 +163,7 @@ proc check_weak_available { } { ...@@ -163,7 +163,7 @@ proc check_weak_available { } {
# HP-UX 10.X doesn't support it # HP-UX 10.X doesn't support it
if { [regexp "hppa.*hpux10" $target_triplet] } { if { [istarget "hppa*-*-hpux10*"] } {
return 0 return 0
} }
...@@ -978,7 +978,6 @@ proc check_mkfifo_available {} { ...@@ -978,7 +978,6 @@ proc check_mkfifo_available {} {
proc check_cxa_atexit_available { } { proc check_cxa_atexit_available { } {
global et_cxa_atexit global et_cxa_atexit
global et_cxa_atexit_target_name global et_cxa_atexit_target_name
global target_triplet
global tool global tool
if { ![info exists et_cxa_atexit_target_name] } { if { ![info exists et_cxa_atexit_target_name] } {
...@@ -998,7 +997,7 @@ proc check_cxa_atexit_available { } { ...@@ -998,7 +997,7 @@ proc check_cxa_atexit_available { } {
if [info exists et_cxa_atexit] { if [info exists et_cxa_atexit] {
verbose "check_cxa_atexit_available: using cached result" 2 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. # HP-UX 10 doesn't have __cxa_atexit but subsequent test passes.
set et_cxa_atexit 0 set et_cxa_atexit 0
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment