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/24365] [4.1 Regression] statement makes a memory store with complex



------- 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


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