public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* committed: Fix NetBSD problem PR80600
@ 2017-05-14 23:12 Krister Walfridsson
  2017-05-15  1:12 ` Krister Walfridsson
  0 siblings, 1 reply; 2+ messages in thread
From: Krister Walfridsson @ 2017-05-14 23:12 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: TEXT/PLAIN, Size: 337 bytes --]

I have committed the attached patch to make NetBSD handle -lgcc correctly
for shared libraries.

gcc/ChangeLog:

         PR target/80600
         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.

libgcc/ChangeLog:

         PR target/80600
         * config.host (*-*-netbsd*): Add t-slibgcc-libgcc to tmake_file.

    /Krister

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1238 bytes --]

Index: gcc/config/netbsd.h
===================================================================
--- gcc/config/netbsd.h	(revision 248036)
+++ gcc/config/netbsd.h	(working copy)
@@ -120,8 +120,7 @@
 #undef LIB_SPEC
 #define LIB_SPEC NETBSD_LIB_SPEC
 
-/* Provide a LIBGCC_SPEC appropriate for NetBSD.  We also want to exclude
-   libgcc with -symbolic.  */
+/* Provide a LIBGCC_SPEC appropriate for NetBSD.  */
 
 #ifdef NETBSD_NATIVE
 #define NETBSD_LIBGCC_SPEC	\
@@ -133,7 +132,7 @@
      %{p: -lgcc_p}		\
      %{pg: -lgcc_p}}"
 #else
-#define NETBSD_LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}"
+#define NETBSD_LIBGCC_SPEC "-lgcc"
 #endif
 
 #undef LIBGCC_SPEC
Index: libgcc/config.host
===================================================================
--- libgcc/config.host	(revision 248036)
+++ libgcc/config.host	(working copy)
@@ -249,6 +249,7 @@
 *-*-netbsd*)
   tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
   tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
+  tmake_file="$tmake_file t-slibgcc-libgcc"
   # NetBSD 1.7 and later are set up to use GCC's crtstuff for
   # ELF configurations.  We will clear extra_parts in the
   # a.out configurations.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: committed: Fix NetBSD problem PR80600
  2017-05-14 23:12 committed: Fix NetBSD problem PR80600 Krister Walfridsson
@ 2017-05-15  1:12 ` Krister Walfridsson
  0 siblings, 0 replies; 2+ messages in thread
From: Krister Walfridsson @ 2017-05-15  1:12 UTC (permalink / raw)
  To: gcc-patches

On Mon, 15 May 2017, Krister Walfridsson wrote:

> I have committed the attached patch to make NetBSD handle -lgcc correctly
> for shared libraries.
>
> gcc/ChangeLog:
>
>        PR target/80600
>        * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
>
> libgcc/ChangeLog:
>
>        PR target/80600
>        * config.host (*-*-netbsd*): Add t-slibgcc-libgcc to tmake_file.

Forgot to say: bootstrapped and tested on i386-unknown-netbsdelf6.1 and
x86_64-unknown-netbsd6.1.

    /Krister

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-14 23:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-14 23:12 committed: Fix NetBSD problem PR80600 Krister Walfridsson
2017-05-15  1:12 ` Krister Walfridsson

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