Patchwork Remove SPARC -mlittle-endian-data spec

login
register
mail settings
Submitter Joseph S. Myers
Date Feb. 17, 2011, 1:10 a.m.
Message ID <Pine.LNX.4.64.1102170109180.15478@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/83418/
State New
Headers show

Comments

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

OK, thanks.

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 ""