public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Update target-supports.exp for hppa*-*-hpux*
@ 2019-03-09 19:15 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2019-03-09 19:15 UTC (permalink / raw)
  To: GCC Patches

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
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-09 18:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-09 19:15 [committed] Update target-supports.exp for hppa*-*-hpux* John David Anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).