This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix check_cxa_atexit_available for target "hppa.*hpux10"


The __cxa_atexit check incorrectly succeeds on hppa*-*-hpux10.  The
enclosed change modifes check_cxa_atexit_available to return false
for this target.

Tested on hppa1.1-hp-hpux10.20.  Applied to trunk and 4.2.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2006-12-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR testsuite/30157
	* lib/target-supports.exp (check_cxa_atexit_available): Return false
	for target "hppa.*hpux10".

Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp	(revision 119608)
+++ lib/target-supports.exp	(working copy)
@@ -978,6 +978,7 @@
 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] } {
@@ -997,6 +998,9 @@
 
     if [info exists et_cxa_atexit] {
 	verbose "check_cxa_atexit_available: using cached result" 2
+    } elseif { [regexp "hppa.*hpux10" $target_triplet] } {
+	# HP-UX 10 doesn't have __cxa_atexit but subsequent test passes.
+	set et_cxa_atexit 0
     } else {
 	set et_cxa_atexit 0
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]