This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.3 PATCH] sh-linux specific fixes
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mark at codesourcery dot com, sugioka at itonet dot co dot jp
- Date: Sat, 09 Aug 2003 09:17:48 +0900
- Subject: [3.3 PATCH] sh-linux specific fixes
Hi,
The attached patches for the 3.3 branch correspond to the following
patches which were already checked in to the mainline:
multilib fix for sh-linux target:
http://gcc.gnu.org/ml/gcc-patches/2003-08/msg00010.html
A few fixes for sh-linux port:
http://gcc.gnu.org/ml/gcc-patches/2003-08/msg00171.html
The change of LIB_SPEC in the latter one is not a regression from
the former gcc but looks to be obvious. OK for the 3.3 branch?
Regards,
kaz
--
2003-08-08 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
* gcc/config.gcc: Do not override sh/t-linux with sh/t-le.
2003-08-08 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
(LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
when -mieee-fp set and -shared not set.
diff -u3prN ORIG/gcc-3.3/gcc/config.gcc LOCAL/gcc-3.3/gcc/config.gcc
--- ORIG/gcc-3.3/gcc/config.gcc Sat Aug 9 07:19:07 2003
+++ LOCAL/gcc-3.3/gcc/config.gcc Sat Aug 9 07:42:26 2003
@@ -2308,7 +2308,7 @@ sh-*-rtems*)
fi
;;
sh-*-linux* | sh[2346lbe]*-*-linux*)
- tmake_file="sh/t-sh sh/t-elf sh/t-linux"
+ tmake_file="sh/t-sh sh/t-elf"
case $machine in
sh*be-*-* | sh*eb-*-*) ;;
*)
@@ -2316,6 +2316,7 @@ sh-*-linux* | sh[2346lbe]*-*-linux*)
tmake_file="${tmake_file} sh/t-le"
;;
esac
+ tmake_file="${tmake_file} sh/t-linux"
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
gas=yes gnu_ld=yes
case $machine in
diff -u3prN ORIG/gcc-3.3/gcc/config/sh/linux.h LOCAL/gcc-3.3/gcc/config/sh/linux.h
--- ORIG/gcc-3.3/gcc/config/sh/linux.h Fri Jun 6 11:06:42 2003
+++ LOCAL/gcc-3.3/gcc/config/sh/linux.h Sat Aug 9 07:52:34 2003
@@ -48,8 +48,7 @@ do { \
"%{shared:-shared} \
%{!static: \
%{rdynamic:-export-dynamic} \
- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
- %{!rpath:-rpath /lib}} \
+ %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
%{static:-static}"
/* The GNU C++ standard library requires that these macros be defined. */
@@ -58,8 +57,10 @@ do { \
#undef LIB_SPEC
#define LIB_SPEC \
- "%{shared: -lc} \
- %{!shared: %{pthread:-lthread} \
+ "%{pthread:-lpthread} \
+ %{shared: -lc} \
+ %{!shared: \
+ %{mieee-fp:-lieee} \
%{profile:-lc_p} %{!profile: -lc}}"
#undef STARTFILE_SPEC