Comment in tree-ssa-ccp.c:
          /* ??? Should perhaps do this in fold proper.  However, doing it
             there requires that we create a new CALL_EXPR, and that requires
             copying EH region info to the new node.  Easier to just do it
             here where we can just smash the call operand.  */

We have to copy the EH region info for other stuff already, there was a bug
about this which caused an ICE with Honza's new testing and was fixed.


-- 
           Summary: OBJ_TYPE_REF handling in fold_stmt should be moved to
                    fold
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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

Reply via email to