This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Update LIB_SPEC define for hppa-linux
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Feb 2002 18:44:04 -0500 (EST)
- Subject: Update LIB_SPEC define for hppa-linux
Installed in 3.1 and 3.2 branches to fix regressions relative to 3.0
with respect to changes in LIB_SPEC in config/linux.h, and changes in
linking libgcc_s in the GCC driver program.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa-linux.h (LIB_SPEC): Update definition.
* pa32-linux.h (LINK_COMMAND_SPEC): Delete.
Index: pa-linux.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/pa/pa-linux.h,v
retrieving revision 1.12
diff -u -3 -p -r1.12 pa-linux.h
--- pa-linux.h 15 Feb 2002 19:11:01 -0000 1.12
+++ pa-linux.h 26 Feb 2002 17:04:40 -0000
@@ -28,7 +28,10 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian"
#undef LIB_SPEC
-#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
+#define LIB_SPEC \
+ "%{shared: -lgcc -lc} \
+ %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+ %{shared-libgcc: -lgcc} %{profile:-lc_p} %{!profile: -lc}}"
#undef ASM_SPEC
#define ASM_SPEC \
Index: pa32-linux.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/pa/pa32-linux.h,v
retrieving revision 1.5
diff -u -3 -p -r1.5 pa32-linux.h
--- pa32-linux.h 15 Feb 2002 19:11:01 -0000 1.5
+++ pa32-linux.h 26 Feb 2002 17:04:40 -0000
@@ -24,14 +24,3 @@ Boston, MA 02111-1307, USA. */
#undef CPP_SPEC
#define CPP_SPEC "%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{mhppa:-D__hppa__} %{posix:-D_POSIX_SOURCE} -D_PA_RISC1_1"
-
-/* We need to link against libgcc.a to resolve millicode references. */
-#undef LINK_COMMAND_SPEC
-#define LINK_COMMAND_SPEC "\
-%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
- %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t}\
- %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\
- %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%G %L %G}}\
- %{!A:%{!nostdlib:%{!nostartfiles:%E}}}\
- %{!nostdlib:%{!nodefaultlibs:%{!static:%{!static-libgcc:-lgcc}}}}\
- %{T*} }}}}}}"