]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR testsuite/30157 (cxa_atexit check doesn't work)
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Wed, 13 Dec 2006 18:47:04 +0000 (18:47 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 13 Dec 2006 18:47:04 +0000 (18:47 +0000)
PR testsuite/30157
* lib/target-supports.exp (check_cxa_atexit_available): Return false
for target "hppa.*hpux10".

From-SVN: r119842

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

index 5fe430e5345e04f4d0279da7511f704c1aec8296..bb665d3d2a5b3d71ab1f719c6baa89ffa6012cc0 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 221d17d474da30e909e5d42705bf6126065c3efb..22b12370f7fd724ec0e87861f7abecfa47ba7bd8 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