[18/25] Specs cleanup: rs6000/vxworks.h -fvec*

Joseph S. Myers joseph@codesourcery.com
Fri Jan 14 00:17:00 GMT 2011


config/rs6000/vxworks.h defines CC1_SPEC to handle -fvec and
-fvec-eabi, translating them to -m options.  But since the original
options would still be passed to cc1 (all -f options are), this is
useless in practice; the -f options would result in errors as they are
in no .opt file.  This patch removes the useless specs.  OK to commit?

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

	* config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
	-fvec-eabi.

diff -rupN --exclude=.svn gcc-mainline-17/gcc/config/rs6000/vxworks.h gcc-mainline/gcc/config/rs6000/vxworks.h
--- gcc-mainline-17/gcc/config/rs6000/vxworks.h	2011-01-12 14:43:16.000000000 -0800
+++ gcc-mainline/gcc/config/rs6000/vxworks.h	2011-01-12 14:44:59.000000000 -0800
@@ -80,8 +80,7 @@ VXWORKS_ADDITIONAL_CPP_SPEC
 
 #define CC1_SPEC						\
 "%{G*} %{mno-sdata:-msdata=none} %{msdata:-msdata=default}	\
- %{mlittle|mlittle-endian:-mstrict-align}			\
- %{fvec:-maltivec} %{fvec-eabi:-maltivec -mabi=altivec}"
+ %{mlittle|mlittle-endian:-mstrict-align}"
 
 #define ASM_SPEC \
 "%(asm_cpu) \

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list