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: [testsuite] fix invalid ilp32 assumptions and m32c-isms


On Fri, Feb 18, 2011 at 06:41:22PM -0500, DJ Delorie wrote:
> Index: gcc.c-torture/execute/cmpsi-2.c
> -feq (int x, int y)
> +#if defined(__m32c__)
> +#define SItype long
> +#else
> +#define SItype int
> +#endif

I'd suggest something like:

  typedef int SItype __attribute ((mode (SI)));

or even:

  typedef __INT32_TYPE__ SItype;

assuming that you really want a 4-byte integer for SItype.

-Nathan


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