https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953
--- Comment #3 from Jakub Jelinek ---
Created attachment 43710
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43710&action=edit
gcc8-pr84953.patch
Untested fix.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953
--- Comment #2 from Jakub Jelinek ---
--- gcc/builtins.c.jj 2018-03-07 22:51:58.871478732 +0100
+++ gcc/builtins.c 2018-03-19 18:49:45.313898848 +0100
@@ -9573,7 +9573,7 @@ fold_builtin_strpbrk (location_t loc, tr
if (p2[0] == '\0')
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953
--- Comment #1 from Andrew Pinski ---
DEF_LIB_BUILTIN(BUILT_IN_STRPBRK, "strpbrk",
BT_FN_STRING_CONST_STRING_CONST_STRING, ATTR_PURE_NOTHROW_NONNULL_LEAF)
DEF_FUNCTION_TYPE_2 (BT_FN_STRING_CONST_STRING_CONST_STRING,