This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite] indicate no "weak" support in pdp11
- From: Paul Koning <paulkoning at comcast dot net>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 19 Nov 2018 17:18:47 -0500
- Subject: [PATCH, testsuite] indicate no "weak" support in pdp11
This patch changes check_weak_available to report that pdp11 does not support "weak". A number of test case failures are caused by attempts to use weak support which is missing in the pdp11 flavor of a.out.
I'm not sure if this is covered by target maintainer authority so I figure it's best to ask for approval.
Ok for trunk?
paul
testsuite/ChangeLog:
2018-11-19 Paul Koning <ni1d@arrl.net>
* lib/target-supports.exp (check_weak_available): Return "no" for
pdp11.
Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp (revision 266288)
+++ lib/target-supports.exp (working copy)
@@ -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