This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/24227] [4.1 Regression] ICE in compare_values, at tree-vrp.c:415



------- Comment #6 from rguenth at gcc dot gnu dot org  2005-10-07 12:45 -------
In fold_binary (fold-const.c:7122) we fold

  op0 == (x, op1)

to

  (x, op0 == op1)

but in creation of the new EQ_EXPR we use trees which have NOPs
stripped, so we end up with a pointer and an integer type for the
comparison.

I have a fix which fold_converts one type to the other.

Richard.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-10-06 13:22:47         |2005-10-07 12:45:28
               date|                            |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]