This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [committed] Fix check_cxa_atexit_available for target "hppa.*hpux10"
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: janis187 at us dot ibm dot com (Janis Johnson)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Dec 2006 11:31:38 -0500 (EST)
- Subject: Re: [committed] Fix check_cxa_atexit_available for target "hppa.*hpux10"
> > + } elseif { [regexp "hppa.*hpux10" $target_triplet] } {
>
> Please change this to use [istarget "hppa*-*-hpux10*l"].
I installed the change below after testing on hppa2.0w-hp-hpux11.11.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
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.
Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp (revision 119843)
+++ lib/target-supports.exp (working copy)
@@ -163,7 +163,7 @@
# 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_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 @@
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 {