This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34992] compiler produces wrong code when optimizing
- From: "roebel at ircam dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2008 10:00:06 -0000
- Subject: [Bug middle-end/34992] compiler produces wrong code when optimizing
- References: <bug-34992-12390@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from roebel at ircam dot fr 2008-01-28 10:00 -------
For completeness :
I now use this function that was proposed in
PR 323. It seems to solve my issue. Thanks for the pointer!
inline
void set_math_double_precision() {
fpu_control_t fpu_control ;
_FPU_GETCW(fpu_control);
fpu_control = (fpu_control & ~_FPU_EXTENDED) | _FPU_DOUBLE;
_FPU_SETCW(fpu_control);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34992