This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix bootstrap powerpc*-*-freebsd* targets
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Segher Boessenkool <segher at kernel dot crashing dot org>
- Date: Sun, 16 Dec 2018 19:46:18 +0100
- Subject: Re: [patch] Fix bootstrap powerpc*-*-freebsd* targets
- References: <b8cac7ab-14c7-1fa8-b658-4e7e246edbf5@fgznet.ch>
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 <andreast@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