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/38865] missing FRE with VIEW_CONVERT_EXPR



------- Comment #6 from pinskia at gcc dot gnu dot org  2009-01-16 18:59 -------
Here is another testcase but this time without -> :
struct s { int i; };
void g(struct s *);
float a (void)
{
  struct s sv;
  sv.i = 0;
  int d = sv.i;
  float d1 = *(float*)&d;
  g(&sv);
  return d1;
}
float a1 (void)
{
  struct s sv;
  sv.i = 0;
  float d = *(float*)&sv.i;
  g(&sv);
  return d;
}


-- 


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


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