This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Update target-supports.exp for hppa*-*-hpux*
- From: John David Anglin <dave dot anglin at bell dot net>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 9 Mar 2019 13:57:12 -0500
- Subject: [committed] Update target-supports.exp for hppa*-*-hpux*
The hppa*-*-hpux* doesn't support undefined weak. The existing check doesn't work
on the 64-bit runtime.
Likewise, we don't have ascii locale.
Committed to trunk.
Dave
--
John David Anglin dave.anglin@bell.net
2019-03-09 John David Anglin <dave.anglin@bell.net>
* lib/target-supports.exp (check_effective_target_weak_undefined):
Return 0 on hppa*-*-hpux*.
(check_ascii_locale_available): Likewise.
Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp (revision 269442)
+++ lib/target-supports.exp (working copy)
@@ -341,6 +341,9 @@
# return 1 if weak undefined symbols are supported.
proc check_effective_target_weak_undefined { } {
+ if { [istarget hppa*-*-hpux*] } {
+ return 0
+ }
return [check_runtime weak_undefined {
extern void foo () __attribute__((weak));
int main (void) { if (foo) return 1; return 0; }
@@ -1427,6 +1430,9 @@
# Return 1 if an ASCII locale is supported on this host, 0 otherwise.
proc check_ascii_locale_available { } {
+ if { [istarget hppa*-*-hpux*] } {
+ return 0
+ }
return 1
}