]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fold __builtin_memchr function
authorMartin Liska <mliska@suse.cz>
Fri, 14 Oct 2016 12:09:51 +0000 (14:09 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 14 Oct 2016 12:09:51 +0000 (12:09 +0000)
commit488c624747ddb76a9110a4ada52073b584669d0d
treeace94ab399d4400cb7af811ab144e00cb1ed65fd
parenta918bfbf3c5b686362f3f97314c2b4bf142d2f82
Fold __builtin_memchr function

* builtins.h(target_char_cst_p): Declare the function.
* builtins.c (fold_builtin_memchr): Remove.
(target_char_cst_p): Move the function from gimple-fold.c.
(fold_builtin_3): Do not call the function.
* gimple-fold.c (gimple_fold_builtin_memchr): New function.
(gimple_fold_builtin): Call the function.
* fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.

From-SVN: r241160
gcc/ChangeLog
gcc/builtins.c
gcc/builtins.h
gcc/fold-const-call.c
gcc/gimple-fold.c