https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63554

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Oct 16 12:25:52 2014
New Revision: 216315

URL: https://gcc.gnu.org/viewcvs?rev=216315&root=gcc&view=rev
Log:
2014-10-16  Richard Biener  <rguent...@suse.de>

    PR middle-end/63554
    * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
    (fold_builtin_strncat_chk): Move ...
    * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
    (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.

    * gcc.dg/torture/pr63554.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr63554.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to