[Bug optimization/10339] [3.2/3.3/3.4 regression] [sparc,ppc,ppc64] Invalid optimization: replacing strncmp by memcmp

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 6 04:47:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10339



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-11-06 04:47 -------
Subject: Bug 10339

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	sayle@gcc.gnu.org	2003-11-06 04:47:36

Modified files:
	gcc            : ChangeLog builtins.c 

Log message:
	Backport from mainline
	PR optimization/10339
	* builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
	directly instead of unsafely transforming call into a memcmp.
	(expand_builtin_strncmp): Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.797&r2=1.16114.2.798
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.165.2.7&r2=1.165.2.8



More information about the Gcc-bugs mailing list