From d540a32c56def226430d308da9c468486b5746ef Mon Sep 17 00:00:00 2001 From: Franz Sirl Date: Fri, 28 May 1999 02:49:16 +0000 Subject: [PATCH] sysv4.h (CC1_SPEC): Add support for -profile * rs6000/sysv4.h (CC1_SPEC): Add support for -profile (LIB_LINUX_SPEC): Likewise. (LIB_LINUX_SPEC): Add support for -pthread (CPP_OS_LINUX_SPEC): Likewise. (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are specified From-SVN: r27217 --- gcc/ChangeLog | 9 +++++++++ gcc/config/rs6000/sysv4.h | 20 +++++++++++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 718d6add5a1..91f18ccd481 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +Fri May 28 03:41:02 1999 Franz Sirl + + * rs6000/sysv4.h (CC1_SPEC): Add support for -profile + (LIB_LINUX_SPEC): Likewise. + (LIB_LINUX_SPEC): Add support for -pthread + (CPP_OS_LINUX_SPEC): Likewise. + (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are + specified. + Thu May 27 13:04:52 1999 H.J. Lu (hjl@gnu.org) * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 0a697027f68..fac1645c0f4 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -1010,7 +1010,8 @@ do { \ %{mcall-solaris: -mno-eabi } \ %{mcall-linux: -mno-eabi }}} \ %{msdata: -msdata=default} \ -%{mno-sdata: -msdata=none}" +%{mno-sdata: -msdata=none} \ +%{profile: -p}" /* Don't put -Y P, for cross compilers */ #undef LINK_PATH_SPEC @@ -1107,7 +1108,7 @@ do { \ #define CPP_SYSV_SPEC \ "%{mrelocatable*: -D_RELOCATABLE} \ %{fpic: -D__PIC__=1 -D__pic__=1} \ -%{fPIC: -D__PIC__=2 -D__pic__=2} \ +%{!fpic: %{fPIC: -D__PIC__=2 -D__pic__=2}} \ %{mcall-sysv: -D_CALL_SYSV} %{mcall-nt: -D_CALL_NT} \ %{mcall-aix: -D_CALL_AIX} %{mcall-aixdesc: -D_CALL_AIX -D_CALL_AIXDESC} \ %{!mcall-sysv: %{!mcall-aix: %{!mcall-aixdesc: %{!mcall-nt: %(cpp_sysv_default) }}}} \ @@ -1304,7 +1305,14 @@ do { \ /* GNU/Linux support. */ #ifndef LIB_LINUX_SPEC -#define LIB_LINUX_SPEC "%{mnewlib: --start-group -llinux -lc --end-group } %{!mnewlib: -lc }" +#ifdef USE_GNULIBC_1 +#define LIB_LINUX_SPEC "%{mnewlib: --start-group -llinux -lc --end-group } \ +%{!mnewlib: -lc }" +#else +#define LIB_LINUX_SPEC "%{mnewlib: --start-group -llinux -lc --end-group } \ +%{!mnewlib: %{shared:-lc} %{!shared: %{pthread:-lpthread } \ +%{profile:-lc_p} %{!profile:-lc}}}" +#endif #endif #ifndef STARTFILE_LINUX_SPEC @@ -1329,9 +1337,15 @@ do { \ #endif #ifndef CPP_OS_LINUX_SPEC +#ifdef USE_GNULIBC_1 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__linux__ \ %{!undef:%{!ansi:%{!std=*:-Dunix -Dlinux}%{std=gnu*:-Dunix -Dlinux}}} \ -Asystem(unix) -Asystem(posix)" +#else +#define CPP_OS_LINUX_SPEC "-D__unix__ -D__linux__ \ +%{!undef:%{!ansi:%{!std=*:-Dunix -Dlinux}%{std=gnu*:-Dunix -Dlinux}}} \ +-Asystem(unix) -Asystem(posix) %{pthread:-D_REENTRANT}" +#endif #endif /* Solaris support. */ -- 2.30.2