This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [committed] fix PR testsuite/29007, gcc.dg/long-long-cst1.c fails
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Sep 2006 02:45:08 -0400
- Subject: Re: [committed] fix PR testsuite/29007, gcc.dg/long-long-cst1.c fails
- References: <1157929998.32574.8.camel@celery.andrew.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Sep 10, 2006 at 04:13:18PM -0700, Andrew Pinski wrote:
> There are two problems with this testcase, one is that we don't return 0
> on success so the test would fail on some targets. Two is that for
> 64bit targets this testcase would fail because we would warn about
> casting from a pointer type to an integer type that are different sizes.
>
> Committed after a test that the testcase now passes.
The same testcase has been committed to gcc-4_1-branch as well, do you plan
to commit the fix there too?
Thanks.
> 2006-09-10 Andrew Pinski <pinskia@physics.uc.edu>
>
> * gcc.dg/long-long-cst1.c (t): Add cast to
> __SIZE_TYPE__ before casting to int.
> (main): Return 0 on success.
Jakub