gcc/gcc ChangeLog builtins.c config/i386/i386. ...

sayle@gcc.gnu.org sayle@gcc.gnu.org
Sat Oct 11 21:11:00 GMT 2003


CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	sayle@gcc.gnu.org	2003-10-11 21:11:29

Modified files:
	gcc            : ChangeLog builtins.c 
	gcc/config/i386: i386.md 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.c-torture/execute: string-opt-8.c 

Log message:
	* builtins.c (expand_builtin_strcmp): Defend against the possibility
	that gen_cmpstrsi may fail: Stabilize the argument list against
	re-evaluation and expand the library call directly using this saved
	argument list if a cmpstrsi sequence can't be generated.
	(expand_builtin_strncmp): Likewise.
	
	* config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
	
	* gcc.c-torture/execute/string-opt-8.c: Don't test optimizations
	that inline strncmp as cmpstrsi on i386 when compiled with -Os.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1386&r2=2.1387
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&r1=1.258&r2=1.259
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.md.diff?cvsroot=gcc&r1=1.483&r2=1.484
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3114&r2=1.3115
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/string-opt-8.c.diff?cvsroot=gcc&r1=1.10&r2=1.11



More information about the Gcc-cvs mailing list