This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFA] Generic big/little-endian handling for SH


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]