On 12.12.18 21:32, Andreas Tobler wrote:

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?

This is another attemtp to fix bootstrap on powerpc*-unknown-freebsd* only.

This one is only for FreeBSD and so I can approve and apply myself.

Objections?

TIA,
Andreas

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

        * config/rs6000/freebsd.h: Add an empty definition for
        GNU_USER_DYNAMIC_LINKER.
        * config/rs6000/freebsd64.h: Likewise.

Index: freebsd.h
===================================================================
--- freebsd.h   (revision 267190)
+++ freebsd.h   (working copy)
@@ -72,4 +72,8 @@
 /* Use standard DWARF numbering for DWARF debugging information.  */
 #define RS6000_USE_DWARF_NUMBERING

+#ifndef GNU_USER_DYNAMIC_LINKER
+#define GNU_USER_DYNAMIC_LINKER ""
+#endif
+
 #define POWERPC_FREEBSD
Index: freebsd64.h
===================================================================
--- freebsd64.h (revision 267190)
+++ freebsd64.h (working copy)
@@ -421,4 +421,8 @@
 #define USE_LD_AS_NEEDED 1
 #endif

+#ifndef GNU_USER_DYNAMIC_LINKER
+#define GNU_USER_DYNAMIC_LINKER ""
+#endif
+
 #define POWERPC_FREEBSD

Reply via email to