sysv4.h (CC1_SPEC): Add support for -profile
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>
Fri, 28 May 1999 02:49:16 +0000 (02:49 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 28 May 1999 02:49:16 +0000 (20:49 -0600)
        * 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
gcc/config/rs6000/sysv4.h

index 718d6add5a1ce8a72d8e33d50f0f67d3dcb8172d..91f18ccd481be7a59f17c37b8a664e68a58c3431 100644 (file)
@@ -1,3 +1,12 @@
+Fri May 28 03:41:02 1999  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
+
+        * 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
index 0a697027f68cfaf698166ef7daf530921889364d..fac1645c0f438a03131e0148f4d46718b003f338 100644 (file)
@@ -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,<path> 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.  */