public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] Fix bootstrap for non linux powerpc targets
@ 2018-12-12 20:33 Andreas Tobler
  2018-12-16 18:46 ` [patch] Fix bootstrap powerpc*-*-freebsd* targets Andreas Tobler
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Tobler @ 2018-12-12 20:33 UTC (permalink / raw)
  To: GCC Patches

Hi all,

this patch fixes bootstrap for my powerpc*-unknown-freebsd* targets.
The definition of GNU_USER_DYNAMIC_LINKER was recently moved to linux.h.

But the GNU_USER_DYNAMIC_LINKER is still used in rs6000/sysv4.h.
So I add an empty definition with guard to cure the bootstrap issue.

Ok for trunk?

TIA,
Andreas

2018-12-12  Andreas Tobler  <andreast@gcc.gnu.org>

	* config/rs6000/sysv4.h: Add an empty definition for
	GNU_USER_DYNAMIC_LINKER for all targets which do not include
	linux.h where GNU_USER_DYNAMIC_LINKER is defined.

Index: sysv4.h
===================================================================
--- sysv4.h	(revision 267063)
+++ sysv4.h	(working copy)
@@ -761,6 +761,9 @@
  #define MUSL_DYNAMIC_LINKER \
    "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"

+#ifndef GNU_USER_DYNAMIC_LINKER
+#define GNU_USER_DYNAMIC_LINKER ""
+#endif
  #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
    %{rdynamic:-export-dynamic} \
    -dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}"

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

end of thread, other threads:[~2018-12-19  8:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-12 20:33 [patch] Fix bootstrap for non linux powerpc targets Andreas Tobler
2018-12-16 18:46 ` [patch] Fix bootstrap powerpc*-*-freebsd* targets Andreas Tobler
2018-12-17  0:10   ` Alan Modra
2018-12-17 17:06     ` Segher Boessenkool
2018-12-18  0:09       ` Alan Modra
2018-12-18  9:20         ` Segher Boessenkool
2018-12-18 12:49           ` Alan Modra
2018-12-18 16:14             ` Segher Boessenkool
2018-12-19  8:36         ` Segher Boessenkool

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