Just like PR 38865:
struct s { _Complex float i; };
void g(struct s *);

float a (float dd)
{
  struct s sv;
  sv.i = dd;
  _Complex float d = sv.i;
  float d1 = __real__ d;
  g(&sv);
  return d1;
}


float a1 (float dd)
{
  struct s sv;
  sv.i = dd;
  float d = __real__ sv.i;
  g(&sv);
  return d;
}


-- 
           Summary: missed FRE with __real and __imag
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        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=38884

Reply via email to