http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46534
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-07 15:11:49 UTC --- Author: jakub Date: Tue Dec 7 15:11:46 2010 New Revision: 167540 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167540 Log: Backport from mainline 2010-11-18 Jakub Jelinek <ja...@redhat.com> PR middle-end/46534 * builtins.c (fold_builtin_printf): Don't copy and modify string before build_string_literal, instead modify what build_string_literal returned. * gcc.c-torture/compile/pr46534.c: New test. Added: branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/compile/pr46534.c Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/builtins.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog