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 optimization/13718] New: Miscompilation of comparison of complex values


Something seems to be going wrong with the handling of complex variables. From 
looking at the tree dumps it seems SRA might be the culprit. 
 
Testcase follows. 
 
void 
foo( _Complex float * a, _Complex float * b) 
{ 
  if (*a != *b) 
        abort (); 
} 
 
int main() 
{ 
  _Complex float v; 
  v = 0; 
  foo (&v, &v); 
}

-- 
           Summary: Miscompilation of comparison of complex values
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: critical
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pbrook at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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