[Bug middle-end/49283] pointless warning with -Wstrict-overflow

2014-10-03 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49283 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/49283] pointless warning with -Wstrict-overflow

2011-06-06 Thread bruno at clisp dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49283 --- Comment #3 from bruno at clisp dot org 2011-06-06 20:33:07 UTC --- (In reply to comment #2) > [GCC] optimizes [...] > moving the + 3 from the LHS and combining it with the constant offset > on the RHS. That is only valid if p + 3 does not get

[Bug middle-end/49283] pointless warning with -Wstrict-overflow

2011-06-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49283 --- Comment #2 from Richard Guenther 2011-06-06 10:38:33 UTC --- 1) Line 2026 contains the expression (p < buff + sizeof buff - 1) GCC only looks at local tuple stmts when emitting the warning, so I suppose it sees sth like p = &buff[...];

[Bug middle-end/49283] pointless warning with -Wstrict-overflow

2011-06-05 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49283 Manuel López-Ibáñez changed: What|Removed |Added Keywords||diagnostic CC|