This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24365] [4.1 Regression] statement makes a memory store with complex
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Oct 2005 13:48:28 -0000
- Subject: [Bug tree-optimization/24365] [4.1 Regression] statement makes a memory store with complex
- References: <bug-24365-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-14 13:48 -------
Reduced testcase:
typedef __complex__ double cdouble;
inline cdouble to_complex(double r) {
cdouble z;
__real__ z = r;
return z;
}
cdouble elt_zero() {
return to_complex(0.0);
}
-----
The inliner is remapping z/retval wrong and forgetting to copy if the complex
is a aggregate or a scaler.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-10-14 13:48:27
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24365