From: Iain Sandoe Date: Sun, 21 Jul 2019 20:15:00 +0000 (+0000) Subject: [PPC] Fix bootstrap for non-SVR4 targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48df93911ab1b71a533934419c320fe9102b5ec1;p=gcc.git [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 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here... * config/rs6000/rs6000-call.c: ... to here. From-SVN: r273646 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3caaafe88f5..7f070e87f27 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-07-21 Iain Sandoe + + * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here... + * config/rs6000/rs6000-call.c: ... to here. + 2019-07-20 Segher Boessenkool * 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 cefb737bae0..2ef8c7f861e 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 dbb6a0f007f..edd8f2b4df8 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