------- Comment #3 from rguenth at gcc dot gnu dot org  2006-02-02 14:56 -------
One may be able to teach forwprop about this optimization, i.e. turn
  x = 1;
  x.0_3 = (char *) &x;
  D.1522_4 = *x.0_3;

into

  D.1522_4 = VIEW_CONVERT_EXPR <char> (x);

if that has the right semantics.  CCP fold may then be able to optimize it.


-- 


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

Reply via email to