* Martin Michlmayr [Tue, Apr 11, 2006 at 12:18:23PM +0200]:
> * Laurent Fousse <[EMAIL PROTECTED]> [2006-04-11 12:08]:
> > The attached C file demonstrate the bug.
> > 4.0.3 passes.
> > 4.2-snap-20060325 from gcc-snapshot package fails.
> > 4.2-snap-20060408 from upstream tarball fails.
>
> Wow, thanks a lot! That was quick.
You're welcome :-)
Since the problem is only in the division, you can have an even
smaller testcase :
#include <stdio.h>
int main (void)
{
volatile long int n;
n = -2;
printf ("%ld\n", (-2147483647L - 1L) / (-n));
return 0;
}
The output gets the sign wrong in recent snapshots. Reported upstream
as #27116.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]