This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23606] fold does not fold (type)(a == b) into a == b (with type as the type)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2005 19:22:24 -0000
- Subject: [Bug middle-end/23606] fold does not fold (type)(a == b) into a == b (with type as the type)
- References: <bug-23606-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2005-11-22 19:22 -------
Subject: Bug 23606
Author: pinskia
Date: Tue Nov 22 19:22:21 2005
New Revision: 107370
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107370
Log:
2005-11-22 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/23606
* fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
COMPARISON_CLASS_P and an integral types create create a new
expression with the new type and fold that.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23606