This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFA] Generic big/little-endian handling for SH
- From: Richard Henderson <rth at redhat dot com>
- To: Jason R Thorpe <thorpej at wasabisystems dot com>, gcc-patches at gcc dot gnu dot org, joern dot rennecke at superh dot com
- Date: Fri, 17 May 2002 16:24:55 -0700
- Subject: Re: [PATCH/RFA] Generic big/little-endian handling for SH
- References: <20020517141731.J14437@dr-evil.shagadelic.org>
On Fri, May 17, 2002 at 02:17:31PM -0700, Jason R Thorpe wrote:
> #ifndef SUBTARGET_CPP_ENDIAN_SPEC
> -#define SUBTARGET_CPP_ENDIAN_SPEC "%{ml:-D__LITTLE_ENDIAN__}"
> +#if TARGET_ENDIAN_DEFAULT == LITTLE_ENDIAN_BIT
> +#define SUBTARGET_CPP_ENDIAN_SPEC \
> + "%{mb:-D__BIG_ENDIAN__} %{!mb:-D__LITTLE_ENDIAN__}"
> +#else
> +#define SUBTARGET_CPP_ENDIAN_SPEC \
> + "%{ml:-D__LITTLE_ENDIAN__} %{!ml:-D__BIG_ENDIAN__}"
See TARGET_CPU_CPP_BUILTINS for mainline.
r~