[Bug c/92507] False positives with -Wsign-compare

2020-03-31 Thread mirq-gccboogs at rere dot qmqm.pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92507 Michał Mirosław changed: What|Removed |Added CC||mirq-gccboogs at rere dot qmqm.pl ---

[Bug c/92507] False positives with -Wsign-compare

2019-11-14 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92507 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org S

[Bug c/92507] False positives with -Wsign-compare

2019-11-14 Thread david at westcontrol dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92507 --- Comment #2 from David Brown --- I am aware that "n" here is not a constant integer expression - it should not need to be for a compiler warning. What the compiler needs in order to eliminate the false positive is a knowledge of the ranges of

[Bug c/92507] False positives with -Wsign-compare

2019-11-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92507 --- Comment #1 from Andrew Pinski --- So there are two things here. First -Wsign-compare does not understand flow control at all so it only looks at the statement/expression at hand (i < n). Second n is not a constant integer expression in C (I