aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2019-07-21 20:15:00 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-07-21 20:15:00 +0000
commit48df93911ab1b71a533934419c320fe9102b5ec1 (patch)
treea1beaeeb2e487083de12ec35fc1e7b7895cf2d51
parentc37b0163fe5307ab508489926114de9cf7e240c1 (diff)
downloadgcc-48df93911ab1b71a533934419c320fe9102b5ec1.zip
gcc-48df93911ab1b71a533934419c320fe9102b5ec1.tar.gz
gcc-48df93911ab1b71a533934419c320fe9102b5ec1.tar.bz2
[PPC] Fix bootstrap for non-SVR4 targets.
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. 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. From-SVN: r273646
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000-call.c4
-rw-r--r--gcc/config/rs6000/rs6000.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3caaafe..7f070e8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c
index cefb737..2ef8c7f 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 dbb6a0f..edd8f2b 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