On Mon, Nov 12, 2018 at 10:05:03PM +1030, Alan Modra wrote:
> This patch removes some duplication in rs6000/sysv4.h of macros found
> in gnu-user.h that we want for linux.  Including gnu-user.h will mean
> powerpc doesn't miss updates to that file.
> 
> Requires https://gcc.gnu.org/ml/gcc-patches/2018-11/msg00917.html and
> https://gcc.gnu.org/ml/gcc-patches/2018-11/msg00919.html
> 
> Bootstrapped etc. powerpc-linux and powerpc64le-linux.

I think this is fine.  Nice cleanup :-)  Okay for trunk.

I'm not sure if it does the right thing for RTEMS, but we'll hear if it
breaks no doubt ;-)


Segher


>       * config.gcc (powerpc*-*-freebsd*, powerpc-*-netbsd*),
>       (powerpc-*-eabisimaltivec*, powerpc-*-eabisim*, powerpc-*-elf*),
>       (powerpc-*-eabialtivec*, powerpc-*-eabi*, powerpc-*-rtems*),
>       (powerpc-wrs-vxworks*, powerpc-*-lynxos*, powerpcle-*-elf*),
>       (powerpcle-*-eabisim*, powerpcle-*-eabi*): Add gnu-user.h to tm_file.
>       * config/rs6000/freebsd.h (CPLUSPLUS_CPP_SPEC),
>       (LINK_GCC_C_SEQUENCE_SPEC): Undef.
>       (ASM_APP_ON, ASM_APP_OFF): Don't define.
>       * config/rs6000/freebsd64.h (ASM_APP_ON, ASM_APP_OFF): Don't define.
>       * config/rs6000/lynx.h (ASM_APP_ON, ASM_APP_OFF): Don't define.
>       * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
>       * config/rs6000/netbsd.h (CPLUSPLUS_CPP_SPEC),
>       (LINK_GCC_C_SEQUENCE_SPEC): Undef.
>       * config/rs6000/rtems.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
>       * config/rs6000/sysv4.h (GNU_USER_TARGET_CRTI): Redefine.
>       (GNU_USER_TARGET_CRTN): Redefine.
>       (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
>       (LIB_LINUX_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
>       (CRTOFFLOADBEGIN, CRTOFFLOADEND): Don't define.
>       (STARTFILE_LINUX_SPEC): Define as GNU_USER_TARGET_STARTFILE_SPEC.
>       (ENDFILE_LINUX_SPEC): Define as GNU_USER_TARGET_ENDFILE_SPEC.
>       (UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER): Don't define.
>       (LINK_EH_SPEC): Don't define.

Reply via email to