https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62090
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Aug 18 14:51:04 2014 New Revision: 214105 URL: https://gcc.gnu.org/viewcvs?rev=214105&root=gcc&view=rev Log: 2014-08-18 Richard Biener <rguent...@suse.de> PR tree-optimization/62090 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c. (fold_builtin_3): Do not fold snprintf. (fold_builtin_4): Likewise. * gimple-fold.c (gimple_fold_builtin_snprintf): New function moved from builtins.c. (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf. (gimple_fold_builtin): Do not fold sprintf here. * gcc.dg/pr62090-2.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/pr62090-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/builtins.c trunk/gcc/gimple-fold.c trunk/gcc/testsuite/ChangeLog