This is the mail archive of the gcc-cvs@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]

gcc/gcc ChangeLog builtins.c builtins.def buil ...


CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_2-rhl8-branch
Changes by:	jakub@gcc.gnu.org	2003-07-15 08:31:15

Modified files:
	gcc            : ChangeLog builtins.c builtins.def 
	                 builtin-types.def 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.c-torture/execute: 20030626-1.c 20030626-2.c 
	                                     string-opt-16.c 

Log message:
	2003-07-11  Jakub Jelinek  <jakub@redhat.com>
	
	* builtins.def (BUILT_IN_SPRINTF): New.
	* builtin-types.def (BT_FN_INT_STRING_CONST_STRING_VAR): New.
	
	2003-06-26  Roger Sayle  <roger@eyesopen.com>
	Jakub Jelinek  <jakub@redhat.com>
	
	* 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.
	
	2003-06-22  Roger Sayle  <roger@eyesopen.com>
	
	* builtins.c (expand_builtin_sprintf): New function.
	Optimize calls to sprintf when the format is "%s" or doesn't contain
	a '%'.
	(expand_builtin): Expand BUILT_IN_SPRINTF using the new function
	expand_builtin_sprintf.
	
	testsuite/
	2003-06-26  Roger Sayle  <roger@eyesopen.com>
	Jakub Jelinek  <jakub@redhat.com>
	
	* 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.
	
	2003-06-22  Roger Sayle  <roger@eyesopen.com>
	
	* gcc.c-torture/execute/string-opt-16.c: New test case.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=1.13152.2.657.2.27.2.136&r2=1.13152.2.657.2.27.2.137
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=1.142.2.2.8.10&r2=1.142.2.2.8.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.def.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=1.28.10.3&r2=1.28.10.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtin-types.def.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=1.5.10.2&r2=1.5.10.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=1.1672.2.166.2.8.2.53&r2=1.1672.2.166.2.8.2.54
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/20030626-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=NONE&r2=1.1.8.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/20030626-2.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=NONE&r2=1.1.8.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/string-opt-16.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-rhl8-branch&r1=1.1.38.1&r2=1.1.38.2


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