target-supports.exp (check_weak_available): Return "no" for pdp11.
authorPaul Koning <ni1d@arrl.net>
Tue, 20 Nov 2018 01:39:08 +0000 (20:39 -0500)
committerPaul Koning <pkoning@gcc.gnu.org>
Tue, 20 Nov 2018 01:39:08 +0000 (20:39 -0500)
* lib/target-supports.exp (check_weak_available): Return "no" for
pdp11.

From-SVN: r266297

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

index 4259616..0a90bd6 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-19  Paul Koning  <ni1d@arrl.net>
+
+       * lib/target-supports.exp (check_weak_available): Return "no" for
+       pdp11.
+
 2018-11-19  Marek Polacek  <polacek@redhat.com>
 
        PR c++/87781 - detect invalid elaborated-type-specifier.
index 8e16efc..c2a9447 100644 (file)
@@ -314,6 +314,12 @@ proc check_weak_available { } {
        return 1
     }
 
+    # pdp11 doesn't support it
+
+    if { [istarget pdp11*-*-*] } {
+       return 0
+    }
+
     # ELF and ECOFF support it. a.out does with gas/gld but may also with
     # other linkers, so we should try it