Patchwork [24/25] Specs cleanup: -Ym,

login
register
mail settings
Submitter Joseph S. Myers
Date Jan. 14, 2011, 12:20 a.m.
Message ID <Pine.LNX.4.64.1101140020040.6059@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/78852/
State New
Headers show

Comments

Joseph S. Myers - Jan. 14, 2011, 12:20 a.m.
The -Ym, assembler option does not exist for the GNU assembler,
although it is a valid option for the system assembler on Solaris.
This patch removes specs passing it to the assembler except for
Solaris.  OK to commit?

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

	* config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
	* config/frv/frv.h (ASM_SPEC): Likewise.
	* config/m68k/linux.h (ASM_SPEC): Likewise.
	* config/pa/pa-linux.h (ASM_SPEC): Likewise.
	* config/rs6000/linux64.h (ASM_SPEC): Likewise.
	* config/rs6000/vxworks.h (ASM_SPEC): Likewise.
	* config/sparc/linux.h (ASM_SPEC): Likewise.
	* config/sparc/linux64.h (ASM_SPEC): Likewise.
	* config/sparc/sp-elf.h (ASM_SPEC): Likewise.
	* config/sparc/sysv4.h (ASM_SPEC): Likewise.
Eric Botcazou - Jan. 14, 2011, 9:17 a.m.
> 2011-01-13  Joseph Myers  <joseph@codesourcery.com>
>
> 	* config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
> 	* config/frv/frv.h (ASM_SPEC): Likewise.
> 	* config/m68k/linux.h (ASM_SPEC): Likewise.
> 	* config/pa/pa-linux.h (ASM_SPEC): Likewise.
> 	* config/rs6000/linux64.h (ASM_SPEC): Likewise.
> 	* config/rs6000/vxworks.h (ASM_SPEC): Likewise.
> 	* config/sparc/linux.h (ASM_SPEC): Likewise.
> 	* config/sparc/linux64.h (ASM_SPEC): Likewise.
> 	* config/sparc/sp-elf.h (ASM_SPEC): Likewise.
> 	* config/sparc/sysv4.h (ASM_SPEC): Likewise.

I'd leave it again for config/sparc/sysv4.h.  Otherwise OK for the SPARC bits.
Joseph S. Myers - Jan. 26, 2011, 5:54 p.m.
Ping.  The non-SPARC parts of this patch 
<http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00913.html> are pending 
review.
Richard Guenther - Jan. 26, 2011, 7:25 p.m.
On Wed, Jan 26, 2011 at 6:54 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> Ping.  The non-SPARC parts of this patch
> <http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00913.html> are pending
> review.

Ok.

Thanks,
Richard.

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

Patch

diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/bfin/bfin.h gcc-mainline/gcc/config/bfin/bfin.h
--- gcc-mainline-23/gcc/config/bfin/bfin.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/bfin/bfin.h	2011-01-12 15:18:36.000000000 -0800
@@ -240,7 +240,6 @@  extern unsigned int bfin_workarounds;
 
 #undef  ASM_SPEC
 #define ASM_SPEC "\
-%{Ym,*} \
     %{mno-fdpic:-mnopic} %{mfdpic}"
 
 #define LINK_SPEC "\
diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/frv/frv.h gcc-mainline/gcc/config/frv/frv.h
--- gcc-mainline-23/gcc/config/frv/frv.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/frv/frv.h	2011-01-12 15:18:43.000000000 -0800
@@ -57,7 +57,7 @@ 
 
 #undef  ASM_SPEC
 #define ASM_SPEC "\
-%{G*} %{Ym,*} \
+%{G*} \
 %{mtomcat-stats} \
 %{!mno-eflags: \
     %{mcpu=*} \
diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/m68k/linux.h gcc-mainline/gcc/config/m68k/linux.h
--- gcc-mainline-23/gcc/config/m68k/linux.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/m68k/linux.h	2011-01-12 15:18:52.000000000 -0800
@@ -25,7 +25,7 @@  along with GCC; see the file COPYING3.  
 /* Add %(asm_cpu_spec) to a generic definition of ASM_SPEC.  */
 #undef ASM_SPEC
 #define ASM_SPEC "%(asm_cpu_spec) %(asm_pcrel_spec) \
-  %{Qy:} %{!Qn:-Qy} %{Ym,*}"
+  %{Qy:} %{!Qn:-Qy}"
 
 #undef PREFERRED_STACK_BOUNDARY
 #define PREFERRED_STACK_BOUNDARY 32
diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/pa/pa-linux.h gcc-mainline/gcc/config/pa/pa-linux.h
--- gcc-mainline-23/gcc/config/pa/pa-linux.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/pa/pa-linux.h	2011-01-12 15:19:00.000000000 -0800
@@ -33,7 +33,7 @@  along with GCC; see the file COPYING3.  
 
 #undef ASM_SPEC
 #define ASM_SPEC \
-  "%{Ym,*}"
+  ""
 
 /* Define this for shared library support because it isn't in the main
    linux.h file.  */
diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/rs6000/linux64.h gcc-mainline/gcc/config/rs6000/linux64.h
--- gcc-mainline-23/gcc/config/rs6000/linux64.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/rs6000/linux64.h	2011-01-12 15:19:08.000000000 -0800
@@ -192,7 +192,7 @@  extern int dot_symbols;
 #endif
 #endif
 
-#define ASM_SPEC32 "-a32 %{Ym,*} \
+#define ASM_SPEC32 "-a32 \
 %{mrelocatable} %{mrelocatable-lib} %{fpic:-K PIC} %{fPIC:-K PIC} \
 %{memb} %{!memb: %{msdata=eabi: -memb}} \
 %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/rs6000/vxworks.h gcc-mainline/gcc/config/rs6000/vxworks.h
--- gcc-mainline-23/gcc/config/rs6000/vxworks.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/rs6000/vxworks.h	2011-01-12 15:19:14.000000000 -0800
@@ -85,7 +85,7 @@  VXWORKS_ADDITIONAL_CPP_SPEC
 #define ASM_SPEC \
 "%(asm_cpu) \
  %{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}} \
- %{Qy:} %{!Qn:-Qy} %{Ym,*} \
+ %{Qy:} %{!Qn:-Qy} \
  %{mrelocatable} %{mrelocatable-lib} %{fpic:-K PIC} %{fPIC:-K PIC} -mbig"
 
 #undef  LIB_SPEC
diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/sparc/linux.h gcc-mainline/gcc/config/sparc/linux.h
--- gcc-mainline-23/gcc/config/sparc/linux.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/sparc/linux.h	2011-01-12 15:19:22.000000000 -0800
@@ -86,7 +86,6 @@  along with GCC; see the file COPYING3.  
 #undef ASM_SPEC
 #define ASM_SPEC "\
 %{!Qn:-Qy} \
-%{Ym,*} \
 -s \
 %{fpic|fPIC|fpie|fPIE:-K PIC} \
 %{!.c:%{findirect-dispatch:-K PIC}} \
diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/sparc/linux64.h gcc-mainline/gcc/config/sparc/linux64.h
--- gcc-mainline-23/gcc/config/sparc/linux64.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/sparc/linux64.h	2011-01-12 15:19:28.000000000 -0800
@@ -209,7 +209,6 @@  along with GCC; see the file COPYING3.  
 #undef ASM_SPEC
 #define ASM_SPEC "\
 %{!Qn:-Qy} \
-%{Ym,*} \
 -s \
 %{fpic|fPIC|fpie|fPIE:-K PIC} \
 %{!.c:%{findirect-dispatch:-K PIC}} \
diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/sparc/sp-elf.h gcc-mainline/gcc/config/sparc/sp-elf.h
--- gcc-mainline-23/gcc/config/sparc/sp-elf.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/sparc/sp-elf.h	2011-01-12 15:19:35.000000000 -0800
@@ -27,7 +27,7 @@  along with GCC; see the file COPYING3.  
 /* It's safe to pass -s always, even if -g is not used.  */
 #undef ASM_SPEC
 #define ASM_SPEC \
-  "%{Qy:} %{!Qn:-Qy} %{Ym,*} -s \
+  "%{Qy:} %{!Qn:-Qy} -s \
    %{fpic|fpie|fPIC|fPIE:-K PIC} %(asm_cpu)"
 
 /* Use the default.  */
diff -rupN --exclude=.svn gcc-mainline-23/gcc/config/sparc/sysv4.h gcc-mainline/gcc/config/sparc/sysv4.h
--- gcc-mainline-23/gcc/config/sparc/sysv4.h	2011-01-12 15:16:45.000000000 -0800
+++ gcc-mainline/gcc/config/sparc/sysv4.h	2011-01-12 15:19:41.000000000 -0800
@@ -46,7 +46,7 @@  along with GCC; see the file COPYING3.  
 /* Pass -K to the assembler when PIC.  */
 #undef ASM_SPEC
 #define ASM_SPEC \
-  "%{Qy:} %{!Qn:-Qy} %{Ym,*} \
+  "%{Qy:} %{!Qn:-Qy} \
    %{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu)"
 
 /* Define the names of various pseudo-op used by the SPARC/svr4 assembler.