[Bug middle-end/21024] fold generates a comparison of two operands whose types do not match

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Apr 17 01:38:00 GMT 2005


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-17 01:38 -------
Subject: Bug 21024

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kazu@gcc.gnu.org	2005-04-17 01:38:28

Modified files:
	gcc            : ChangeLog builtins.c fold-const.c 

Log message:
	PR middle-end/21024
	* builtins.c (expand_builtin_strcat): Convert the result of
	strlen to the right type.
	* fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
	avoid creating type mismatches.
	<GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
	type mismatches.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8326&r2=2.8327
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&r1=1.455&r2=1.456
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.561&r2=1.562



-- 


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



More information about the Gcc-bugs mailing list