[Bug middle-end/35903] false Warray-bounds warning when passing quoted string to function strcmp(arg,"no");

2019-08-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35903 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug middle-end/35903] false Warray-bounds warning when passing quoted string to function strcmp(arg,"no");

2018-11-09 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35903 --- Comment #11 from Eric Gallager --- (In reply to Manuel López-Ibáñez from comment #4) > (In reply to comment #3) > > This bug has no changed for months, I think it is still active. > > Newer higher priority bugs often make us forget about

[Bug middle-end/35903] false Warray-bounds warning when passing quoted string to function strcmp(arg,no);

2010-02-19 Thread manu at gcc dot gnu dot org
--- Comment #9 from manu at gcc dot gnu dot org 2010-02-19 23:56 --- This is not an uninitialized issue. The reason this requires -O2 is that -Warray-bounds requires VRP to warn. The gimple output already looks quite different. -funsigned-char: D.1565: [pr35903.i :

[Bug middle-end/35903] false Warray-bounds warning when passing quoted string to function strcmp(arg,no);

2010-02-19 Thread manu at gcc dot gnu dot org
--- Comment #10 from manu at gcc dot gnu dot org 2010-02-20 00:19 --- Reduced testcase: extern int strlen (__const char *__s); int echo (int); int main(int argc, char **argv) { echo (({ int __s1_len, __s2_len; (__builtin_constant_p (argv[0]) __builtin_constant_p (AA) (__s1_len