Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: -fstrict-overflow and -Wstrict-overflow
On Fri, Oct 12, 2012 at 08:13:24PM +0200, Alan Barrett wrote:
> >One of (serious) problem that we can't use -Wstrict-overflow by default
> >is that gcc sometimes misundestand it :-<
> >
> >How should we use it?
>
> Do you have an example where gcc does the wrong thing with
> -Wstrict-overflow? (The example in your message, which I am not
> quoting here, showed gcc doing the right thing: that is, drawing
> attention to a case where the program invoked undefined behaviour.)
fairly simple one: games/backgammon/backgammon/move.c, at line 164.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index