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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953
--- Comment #7 from Bernd Edlinger ---
Well, okay then...
Thanks!
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953
Jakub Jelinek changed:
What|Removed |Added
Priority|P3 |P2
Target Milestone|---