gimple-fold.c (get_maxval_strlen): Add overload wrapping get_maxval_strlen inside...
authorRichard Biener <rguenther@suse.de>
Wed, 27 Aug 2014 12:48:23 +0000 (12:48 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 27 Aug 2014 12:48:23 +0000 (12:48 +0000)
commitdcb7fae249bd3b867d91dd85c2e66fd51eb2b45e
tree6f07640491cfff476e56389a61fa27bec7ea6293
parent14562eb9c47f3be8257f674e8196ac6ac5a967c7
gimple-fold.c (get_maxval_strlen): Add overload wrapping get_maxval_strlen inside a more useful API.

2014-08-27  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (get_maxval_strlen): Add overload wrapping
get_maxval_strlen inside a more useful API.
(gimple_fold_builtin_with_strlen): Remove and fold into ...
(gimple_fold_builtin): ... caller.
(gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
gimple_fold_builtin_sprintf): Adjust to compute maxval
themselves.

From-SVN: r214574
gcc/ChangeLog
gcc/gimple-fold.c