[committed] fix PR testsuite/29007, gcc.dg/long-long-cst1.c fails

Jakub Jelinek jakub@redhat.com
Mon Sep 11 06:45:00 GMT 2006


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



More information about the Gcc-patches mailing list