This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/46534] [4.3/4.4/4.5/4.6 Regression] ICE optimizing printf ("...>10MBstring\n") into puts


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46534

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-18 20:51:24 UTC ---
Author: jakub
Date: Thu Nov 18 20:51:19 2010
New Revision: 166918

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166918
Log:
    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:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr46534.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]