* [PPC, committed] Fix bootstrap for non-SVR4 targets.
@ 2019-07-21 20:17 Iain Sandoe
0 siblings, 0 replies; only message in thread
From: Iain Sandoe @ 2019-07-21 20:17 UTC (permalink / raw)
To: GCC Patches; +Cc: seurer, Segher Boessenkool, David Edelsohn
The recent change to move code into the new rs6000-call.c file is missing a
default value for the TARGET_NO_PROTOTYPE value (which only affects targets
that don’t include svr4.h). Fixed by moving the fallback setting from
rs6000.c (which has no uses now) to rs6000-call.c.
pre-approved on IRC by Segher,
tested on powerpc-ibm-aix7.2, powerpc-darwin9,
applied to mainline,
Iain
2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
* config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
* config/rs6000/rs6000-call.c: ... to here.
diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c
index cefb737bae..2ef8c7f861 100644
--- a/gcc/config/rs6000/rs6000-call.c
+++ b/gcc/config/rs6000/rs6000-call.c
@@ -86,6 +86,10 @@
# endif
#endif
+#ifndef TARGET_NO_PROTOTYPE
+#define TARGET_NO_PROTOTYPE 0
+#endif
+
struct builtin_description
{
const HOST_WIDE_INT mask;
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index dbb6a0f007..edd8f2b4df 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -84,10 +84,6 @@
/* This file should be included last. */
#include "target-def.h"
-#ifndef TARGET_NO_PROTOTYPE
-#define TARGET_NO_PROTOTYPE 0
-#endif
-
/* Set -mabi=ieeelongdouble on some old targets. In the future, power server
systems will also set long double to be IEEE 128-bit. AIX and Darwin
explicitly redefine TARGET_IEEEQUAD and TARGET_IEEEQUAD_DEFAULT to 0, so
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-21 20:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-21 20:17 [PPC, committed] Fix bootstrap for non-SVR4 targets Iain Sandoe
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).