aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBo Thorsen <bo@suse.de>2002-07-18 08:47:42 +0000
committerBo Thorsen <bo@gcc.gnu.org>2002-07-18 10:47:42 +0200
commit61fee9b3b4c0e47c6965886d77d117d892f689ff (patch)
treef97c0b2bd4bee062060ef4141584b4a67469799d /gcc
parentf305679f4e9bc6f1fcf3b97dfaaf82de51be152c (diff)
downloadgcc-61fee9b3b4c0e47c6965886d77d117d892f689ff.zip
gcc-61fee9b3b4c0e47c6965886d77d117d892f689ff.tar.gz
gcc-61fee9b3b4c0e47c6965886d77d117d892f689ff.tar.bz2
linux64.h (LINK_SPEC): Remove bogus -Y option.
2002-07-17 Bo Thorsen <bo@suse.de> * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option. (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations. (STARTFILE_SPEC): Remove hardcoded library paths. (ENDFILE_SPEC): Likewise. From-SVN: r55554
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/i386/linux64.h27
2 files changed, 20 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 48a3607..70986fd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2002-07-17 Bo Thorsen <bo@suse.de>
+
+ * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
+ (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
+ (STARTFILE_SPEC): Remove hardcoded library paths.
+ (ENDFILE_SPEC): Likewise.
+
Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
* gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h
index 7f19a53..5f00cdf 100644
--- a/gcc/config/i386/linux64.h
+++ b/gcc/config/i386/linux64.h
@@ -51,7 +51,7 @@ Boston, MA 02111-1307, USA. */
done. */
#undef LINK_SPEC
-#define LINK_SPEC "%{!m32:-m elf_x86_64 -Y P,/usr/lib64} %{m32:-m elf_i386} \
+#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
%{shared:-shared} \
%{!shared: \
%{!static: \
@@ -60,23 +60,22 @@ Boston, MA 02111-1307, USA. */
%{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
%{static:-static}}"
+#ifdef NATIVE_CROSS
+#define STARTFILE_PREFIX_SPEC "\
+ %{m32: /usr/local/lib/ /lib/ /usr/lib/} \
+ %{!m32: /usr/local/lib64/ /lib64/ /usr/lib64/}"
+#endif
+
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
- "%{m32:%{!shared: \
- %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
- %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} \
- crti.o%s %{static:crtbeginT.o%s}\
- %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}} \
- %{!m32:%{!shared: \
- %{pg:/usr/lib64/gcrt1.o%s} %{!pg:%{p:/usr/lib64/gcrt1.o%s} \
- %{!p:%{profile:/usr/lib64/gcrt1.o%s} %{!profile:/usr/lib64/crt1.o%s}}}}\
- /usr/lib64/crti.o%s %{static:crtbeginT.o%s} \
- %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}}"
+ "%{!shared: \
+ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
+ %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} \
+ crti.o%s %{static:crtbeginT.o%s} \
+ %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
#undef ENDFILE_SPEC
-#define ENDFILE_SPEC "\
- %{m32:%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s} \
- %{!m32:%{!shared:crtend.o%s} %{shared:crtendS.o%s} /usr/lib64/crtn.o%s}"
+#define ENDFILE_SPEC "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
#define MULTILIB_DEFAULTS { "m64" }