public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb/binutils-2_40-branch] Merge config/picflag.m4 from gcc
@ 2023-01-04 11:45 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-01-04 11:45 UTC (permalink / raw)
  To: bfd-cvs, gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4a22a3348e5ce06223be06cad49cbf3b2c274e9d

commit 4a22a3348e5ce06223be06cad49cbf3b2c274e9d
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Jan 4 13:36:24 2023 +1030

    Merge config/picflag.m4 from gcc

Diff:
---
 config/picflag.m4   | 3 +++
 libiberty/configure | 4 +---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/config/picflag.m4 b/config/picflag.m4
index 3bd49af00e5..3f3ac744c96 100644
--- a/config/picflag.m4
+++ b/config/picflag.m4
@@ -44,6 +44,9 @@ case "${$2}" in
 	# sets the default TLS model and affects inlining.
 	$1=-fPIC
 	;;
+    loongarch*-*-*)
+	$1=-fpic
+	;;
     mips-sgi-irix6*)
 	# PIC is the default.
 	;;
diff --git a/libiberty/configure b/libiberty/configure
index 79ef15312e2..1ccfac9fb11 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -5368,9 +5368,7 @@ case "${host}" in
     sh-*-linux* | sh[2346lbe]*-*-linux*)
 	PICFLAG=-fpic
 	;;
-    # FIXME: Simplify to sh*-*-netbsd*?
-    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
-      sh64-*-netbsd* | sh64l*-*-netbsd*)
+    sh*-*-netbsd*)
 	PICFLAG=-fpic
 	;;
     # Default to -fPIC unless specified otherwise.

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

only message in thread, other threads:[~2023-01-04 11:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04 11:45 [binutils-gdb/binutils-2_40-branch] Merge config/picflag.m4 from gcc Alan Modra

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).