OSDN Git Service

PR testsuite/30157
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Dec 2006 18:47:04 +0000 (18:47 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Dec 2006 18:47:04 +0000 (18:47 +0000)
* lib/target-supports.exp (check_cxa_atexit_available): Return false
for target "hppa.*hpux10".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119842 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 5fe430e..bb665d3 100644 (file)
@@ -1,3 +1,9 @@
+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".
+
 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
 
        * g++.dg/debug/vartrack1.C: New test.
index 221d17d..22b1237 100644 (file)
@@ -978,6 +978,7 @@ 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] } {
@@ -997,6 +998,9 @@ 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] } {
+       # HP-UX 10 doesn't have __cxa_atexit but subsequent test passes.
+       set et_cxa_atexit 0
     } else {
        set et_cxa_atexit 0