[Bug middle-end/19331] [4.0/4.1 Regression] Inefficient code generated for bitfield assignment

2005-03-13 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-13 
22:34 ---
Subject: Bug 19331

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-03-13 22:34:07

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

Log message:
PR middle-end/19331
* tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
* fold-const.c (fold_sign_changed_comparison): Likewise.
(fold_binary): Optimize comparisons against widened operands if
the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7828&r2=2.7829
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.467&r2=1.468
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.541&r2=1.542



-- 


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


[Bug middle-end/19331] [4.0/4.1 Regression] Inefficient code generated for bitfield assignment

2005-03-13 Thread giovannibajo at libero dot it

--- Additional Comments From giovannibajo at libero dot it  2005-03-13 
15:08 ---
The above link is broken because of the gcc.gnu.org hd crash. Roger, I can't 
understand if this bug was fixed or not. Can you elaborate?

-- 


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