This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [testsuite] fix invalid ilp32 assumptions and m32c-isms
- From: Nathan Froyd <froydnj at codesourcery dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 18 Feb 2011 17:59:09 -0800
- Subject: Re: [testsuite] fix invalid ilp32 assumptions and m32c-isms
- References: <201102182341.p1INfM8k013024@greed.delorie.com>
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