aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>1999-05-28 02:49:16 +0000
committerJeff Law <law@gcc.gnu.org>1999-05-27 20:49:16 -0600
commitd540a32c56def226430d308da9c468486b5746ef (patch)
treec0a6bd5f648cf1795e7bd8ab63ca121558b1c6f7
parent263505afafc29e3c1ee3b9b93db70b597ff7227b (diff)
downloadgcc-d540a32c56def226430d308da9c468486b5746ef.zip
gcc-d540a32c56def226430d308da9c468486b5746ef.tar.gz
gcc-d540a32c56def226430d308da9c468486b5746ef.tar.bz2
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
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config/rs6000/sysv4.h20
2 files changed, 26 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 718d6ad..91f18cc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index 0a69702..fac1645 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,<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. */