This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove SPARC -mlittle-endian-data spec
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: rth at redhat dot com, davem at redhat dot com, jakub at redhat dot com, ebotcazou at libertysurf dot fr
- Date: Thu, 17 Feb 2011 01:10:13 +0000 (UTC)
- Subject: Remove SPARC -mlittle-endian-data spec
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.
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 ""
--
Joseph S. Myers
joseph@codesourcery.com