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 42596160f96e97f659f874d2eb8ecf3d3ec4ab38..0a90bd6f21febd7d5df8c3dab5460245aad1576f 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 8e16efcd6401e1c9a03113f84b4a07c3675cc747..c2a944738ccf8e1efc5249d0420ddeac1934cb31 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