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/30473] [4.0/4.1/4.2/4.3 Regression] Internal Compiler Error with a sprintf with few arguments for format %s



------- Comment #5 from jakub at gcc dot gnu dot org  2007-02-02 15:23 -------
Subject: Bug 30473

Author: jakub
Date: Fri Feb  2 15:22:50 2007
New Revision: 121503

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121503
Log:
        PR middle-end/30473
        * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
        sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).

        * gcc.dg/pr30473.c: New test.
        * gcc.c-torture/execute/20070201-1.c: New test.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/gcc.c-torture/execute/20070201-1.c
    branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/pr30473.c
Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/builtins.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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