diff mbox

Remove SPARC -mlittle-endian-data spec

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

Commit Message

Joseph Myers Feb. 17, 2011, 1:10 a.m. UTC
SPARC has a preprocessor spec
%{mlittle-endian-data:-D__LITTLE_ENDIAN_DATA__}.  But there is no
-mlittle-endian-data option in sparc.opt or little-endian.opt, no code
to handle such an option and such a spec is useless in this case since
preprocessing will also pass the -m option down to cc1 which will
reject it.  Thus, this patch removes this spec as useless.

Tested building cc1 and xgcc for cross to sparc-elf.  OK to commit?

2011-02-16  Joseph Myers  <joseph@codesourcery.com>

	* config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
	-mlittle-endian-data.

Comments

Eric Botcazou Feb. 17, 2011, 12:01 p.m. UTC | #1
> 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
>
> 	* config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
> 	-mlittle-endian-data.

OK, thanks.
diff mbox

Patch

Index: gcc/config/sparc/sparc.h
===================================================================
--- gcc/config/sparc/sparc.h	(revision 170230)
+++ gcc/config/sparc/sparc.h	(working copy)
@@ -388,10 +388,9 @@  extern enum cmodel sparc_cmodel;
 %{!m32:%{!m64:%(cpp_arch_default)}} \
 "
 
-/* Macros to distinguish endianness.  */
+/* Macro to distinguish endianness.  */
 #define CPP_ENDIAN_SPEC "\
-%{mlittle-endian:-D__LITTLE_ENDIAN__} \
-%{mlittle-endian-data:-D__LITTLE_ENDIAN_DATA__}"
+%{mlittle-endian:-D__LITTLE_ENDIAN__}"
 
 /* Macros to distinguish the particular subtarget.  */
 #define CPP_SUBTARGET_SPEC ""