diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 02:50:19 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 02:50:19 +0000 |
commit | a7a723f0f12cdce946603c174503b640b2b98dae (patch) | |
tree | 0c737ba12698215611e4c39ae5f14fff744af169 /gcc/common.opt | |
parent | 34ceaf23129bf46446b465721d18ff122a85b384 (diff) | |
download | gcc-a7a723f0f12cdce946603c174503b640b2b98dae.tar.gz |
* builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
obtain the format string instead of using TREE_STRING_POINTER and
TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the
return value is unused or the length of src is a known constant.
* gcc.c-torture/execute/string-opt-16.c: Remove test for disabled
sprintf(dst,"%s",src) optimization.
* gcc.c-torture/execute/20030626-1.c: New test case.
* gcc.c-torture/execute/20030626-2.c: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68555 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
0 files changed, 0 insertions, 0 deletions