summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-27 02:50:19 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-27 02:50:19 +0000
commita7a723f0f12cdce946603c174503b640b2b98dae (patch)
tree0c737ba12698215611e4c39ae5f14fff744af169 /gcc/opts.c
parent34ceaf23129bf46446b465721d18ff122a85b384 (diff)
downloadgcc-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/opts.c')
0 files changed, 0 insertions, 0 deletions