------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-12 
16:58 -------
Created an attachment (id=9250)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9250&action=view)
patch which should fix this without any really bad side effects

This patch should fix it.  I have not tested it yet though.  We always have the
correct type if we have *rhs_p as an SSA_NAME because of may_propagate_copy
check.  And since *rhs_p is always the right hand side of a MODIFY_EXPR and
fold_convert produces a NOP_EXPR/CONVERT_EXPR for SSA_NAMEs operands and
CONSTANTS (ADDR_EXPR will produce a cast).

ChangeLog:
* tree-ssa-pre.c (eliminate): Convert the sprime to the correct type if *rhs_p
is not a SSA_NAME.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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

Reply via email to