[Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"")

2018-03-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #8 from Jakub Jelinek --- Author: jakub Date: Tue Mar 20 07:55:41 2018 New Revision: 258671 URL: https://gcc.gnu.org/viewcvs?rev=258671&root=gcc&view=rev Log: PR c/84953 * builtins.c (fold_builtin_strpbrk): For strpbr

[Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"")

2018-03-19 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #7 from Bernd Edlinger --- Well, okay then... Thanks!

[Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"")

2018-03-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #6 from Jakub Jelinek --- I disagree, it is a well documented behavior and user gets exactly what he asked for. There is no questionable or problematic behavior with those options. It is not any different from strchr ("abcd", 'e') a

[Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"")

2018-03-19 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #5 from Bernd Edlinger --- WOW! That was quick! Note that strpbrk(p, "") is certainly worth a warning: in the original context the second parameter was the result from a macro substitution, that was far from obvious to spot, and strp

[Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"")

2018-03-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P2 Target Milestone|---