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 Regression] ICE optimizing printf ("...>10MBstring\n") into puts


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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-07 18:57:00 UTC ---
Author: jakub
Date: Tue Dec  7 18:56:56 2010
New Revision: 167558

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167558
Log:
    PR middle-end/46534
    * builtins.c (expand_builtin_printf): Don't copy and modify string
    before build_string_literal, instead modify what
    build_string_literal returned.

    Backport from mainline
    2010-11-18  Jakub Jelinek  <jakub@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_4-branch/gcc/testsuite/gcc.c-torture/compile/pr46534.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/builtins.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


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