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

2009-10-22 Thread cepeda at gmail dot com
--- Comment #7 from cepeda at gmail dot com 2009-10-22 18:31 --- Unfortunately and surprisely, printf is needed in this testcase. I think that a different testcase without the printf can be found because the bigger code that I used had not got the printf. I have attatched the

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

2009-10-22 Thread cepeda at gmail dot com
--- Comment #6 from cepeda at gmail dot com 2009-10-22 18:30 --- Created an attachment (id=18870) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18870&action=view) Preprocessed file of the testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35903

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

2009-10-16 Thread cepeda at gmail dot com
--- Comment #3 from cepeda at gmail dot com 2009-10-16 16:51 --- This bug has no changed for months, I think it is still active. It seems not to work only when size of char[] is 3 (2+'\0'). A test case is this: // Begin of code #include #include int main(int argc, c