This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/37661] wrong conversion from integer to long double
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2008 19:04:12 -0000
- Subject: [Bug target/37661] wrong conversion from integer to long double
- References: <bug-37661-1710@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ebotcazou at gcc dot gnu dot org 2008-09-27 19:04 -------
> If you want a workaround rather than backporting the patch, I suppose you
> could do all your conversions to long double from long long or unsigned
> long long instead of from 32-bit integer types, though the compiler might
> optimize away the intermediate conversions and so stop such a workaround
> from working. I'd advise backporting the patch instead.
Backport to 4.3 branch is OK by me.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Summary|long double is buggy on |wrong conversion from
|sparc64 |integer to long double
Version|unknown |4.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37661