Patchwork [11/25] Specs cleanup: config/m32r/little.h

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

Comments

Joseph S. Myers - Jan. 14, 2011, 12:09 a.m.
config/m32r/little.h has various specs referencing (and in one case
generating) options -mbe -mbig-endian -mle that do not exist in the
.opt file.  (This port does not support options changing endianness,
only configuration when GCC is configured.)  As it happens, these
specs are not in fact used anywhere (so they don't in fact make things
break), so they can simply be removed as unused, which this patch
does.  OK to commit?

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

	* config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
	ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
Nick Clifton - Jan. 14, 2011, 10:40 a.m.
Hi Joseph,

> 2011-01-13  Joseph Myers<joseph@codesourcery.com>
>
> 	* config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
> 	ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.

Approved - please apply.

Cheers
   Nick

Patch

diff -rupN --exclude=.svn gcc-mainline-10/gcc/config/m32r/little.h gcc-mainline/gcc/config/m32r/little.h
--- gcc-mainline-10/gcc/config/m32r/little.h	2009-03-28 00:38:07.000000000 -0700
+++ gcc-mainline/gcc/config/m32r/little.h	2011-01-12 14:25:01.000000000 -0800
@@ -19,15 +19,3 @@ 
    <http://www.gnu.org/licenses/>.  */
 
 #define TARGET_LITTLE_ENDIAN 1
-
-#define CPP_ENDIAN_SPEC \
-  " %{mbe:-D__BIG_ENDIAN__} %{mbig-endian:-D__BIG_ENDIAN__}" \
-  " %{!mbe: %{!mbig-endian:-D__LITTLE_ENDIAN__}}"
-                                                                                
-#define CC1_ENDIAN_SPEC " %{!mbe: %{!mbig-endian:-mle}}"
-
-#define ASM_ENDIAN_SPEC \
-  " %{!mbe: %{!mbig-endian:-EL}} %{mbe:-EB} %{mbig-endian:-EB}"
-
-#define LINK_ENDIAN_SPEC " %{!mbe: %{!mbig-endian:-EL}}"
-