[23/25] Specs cleanup: -YP,

Message ID Pine.LNX.4.64.1101140019330.6059@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers Jan. 14, 2011, 12:20 a.m.
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.

Comments

Joseph Myers Jan. 26, 2011, 5:53 p.m. | #1
Ping.  This patch 
<http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00912.html> is pending 
review.
Richard Biener Jan. 26, 2011, 7:24 p.m. | #2
On Wed, Jan 26, 2011 at 6:53 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> Ping.  This patch
> <http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00912.html> is pending
> review.

Ok.

Thanks,
Richard.

> --
> Joseph S. Myers
> joseph@codesourcery.com
>

Patch

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) } \