This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13718] New: Miscompilation of comparison of complex values
- From: "pbrook at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2004 14:09:01 -0000
- Subject: [Bug optimization/13718] New: Miscompilation of comparison of complex values
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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