diff mbox series

[committed] Update target-supports.exp for hppa*-*-hpux*

Message ID bd59b9d5-8675-0db4-a99c-a7be9d6f62cc@bell.net
State New
Headers show
Series [committed] Update target-supports.exp for hppa*-*-hpux* | expand

Commit Message

John David Anglin March 9, 2019, 6:57 p.m. UTC
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
diff mbox series

Patch

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
 }