On Sat, Jan 18, 2025 at 07:06:16PM +0000, Sam James wrote:
> Dimitar Dimitrov <dimi...@dinux.eu> writes:
> 
> > This test fails on AVR.
> >
> > Debugging the test on x86 host, I noticed that u in function s sometimes
> > has value 16128.  The "t <= 3 * u" expression in the same function
> > results in signed integer overflow for targets with sizeof(int)=16.
> >
> > Fix by requiring int32 effective target.
> 
> Ah, thanks, I should've clocked that, especially because I'd played with
> the values quite a bit.
> 
> >
> > Also add return statement for the main function.
> >
> > gcc/testsuite/ChangeLog:
> >
> >     * gcc.dg/torture/pr117546.c: Require effective target int32.
> >     (main): Add return statement.
> >
> > Ok for trunk?
> >
> > Cc: Sam James <s...@gentoo.org>
> > Signed-off-by: Dimitar Dimitrov <dimi...@dinux.eu>
> > ---
> 
> I think it can go in as obvious. Thanks for the fixup.

Pushed as obvious as r15-7031-g34c51485808188.

Thanks,
Dimitar

Reply via email to