[Bug middle-end/30473] [4.1 Regression] Internal Compiler Error with a sprintf with few arguments for format %s
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Feb 14 20:34:00 GMT 2007
------- Comment #7 from jakub at gcc dot gnu dot org 2007-02-14 20:34 -------
Subject: Bug 30473
Author: jakub
Date: Wed Feb 14 20:33:56 2007
New Revision: 121961
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121961
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_1-branch/gcc/testsuite/gcc.c-torture/execute/20070201-1.c
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr30473.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/builtins.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30473
More information about the Gcc-bugs
mailing list