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 tree-optimization/35468] LHS of assignment can be folded to a constant causing ICE



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-03-05 15:27 -------
This is done by several passes through the magics of fold_stmt_r:

    case ARRAY_REF:
      /* If we are not processing expressions found within an
         ADDR_EXPR, then we can fold constant array references.  */
      if (!*inside_addr_expr_p)
        t = fold_read_from_constant_string (expr);
      else
        t = NULL;
      break;

we should remember if we are visiting the LHS of an expression here.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-05 15:27:56
               date|                            |


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


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