This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[23/25] Specs cleanup: -YP,


The -YP, linker option, though accepted by the GNU linker, is
essentially an option from certain SysV systems accepted by GCC for
compatibility with those systems' native compilers.  It makes no sense
for GCC to accept it for other operating systems on certain CPUs only;
this patch removes such specs for random targets supporting it,
leaving those for Solaris and QNX.  OK to commit?

2011-01-13  Joseph Myers  <joseph@codesourcery.com>

	* config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
	* config/frv/frv.h (LINK_SPEC): Likewise.
	* config/rs6000/sysv4.h (LINK_SPEC): Likewise.

diff -rupN --exclude=.svn gcc-mainline-22/gcc/config/bfin/bfin.h gcc-mainline/gcc/config/bfin/bfin.h
--- gcc-mainline-22/gcc/config/bfin/bfin.h	2011-01-12 14:01:51.000000000 -0800
+++ gcc-mainline/gcc/config/bfin/bfin.h	2011-01-12 15:16:45.000000000 -0800
@@ -249,7 +249,6 @@ extern unsigned int bfin_workarounds;
 %{static:-dn -Bstatic} \
 %{shared:-G -Bdynamic} \
 %{symbolic:-Bsymbolic} \
-%{YP,*} \
 %{Qy:} %{!Qn:-Qy} \
 -init __init -fini __fini "
 
diff -rupN --exclude=.svn gcc-mainline-22/gcc/config/frv/frv.h gcc-mainline/gcc/config/frv/frv.h
--- gcc-mainline-22/gcc/config/frv/frv.h	2011-01-12 14:02:10.000000000 -0800
+++ gcc-mainline/gcc/config/frv/frv.h	2011-01-12 15:16:45.000000000 -0800
@@ -127,7 +127,6 @@
 %{shared:-Bdynamic} \
 %{symbolic:-Bsymbolic} \
 %{G*} \
-%{YP,*} \
 %{Qy:} %{!Qn:-Qy}"
 
 #undef  LIB_SPEC
diff -rupN --exclude=.svn gcc-mainline-22/gcc/config/rs6000/sysv4.h gcc-mainline/gcc/config/rs6000/sysv4.h
--- gcc-mainline-22/gcc/config/rs6000/sysv4.h	2011-01-12 14:43:03.000000000 -0800
+++ gcc-mainline/gcc/config/rs6000/sysv4.h	2011-01-12 15:17:06.000000000 -0800
@@ -618,7 +618,7 @@ extern int fixuplabelno;
 #undef	LINK_SPEC
 #define	LINK_SPEC "\
 %{h*} %{v:-V} %{!msdata=none:%{G*}} %{msdata=none:-G0} \
-%{YP,*} %{R*} \
+%{R*} \
 %{Qy:} %{!Qn:-Qy} \
 %(link_shlib) \
 %{!T*: %(link_start) } \

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]