public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/54347] New: REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used in i386 @ 2012-08-21 15:00 hjl.tools at gmail dot com 2012-08-22 13:56 ` [Bug target/54347] REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used with XFmode hjl.tools at gmail dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: hjl.tools at gmail dot com @ 2012-08-21 15:00 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54347 Bug #: 54347 Summary: REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used in i386 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: hjl.tools@gmail.com CC: ubizjak@gmail.com i386.c has /* The __float80 type. */ float80_type_node = long_double_type_node; if (TYPE_MODE (float80_type_node) != XFmode) { /* The __float80 type. */ float80_type_node = make_node (REAL_TYPE); TYPE_PRECISION (float80_type_node) = 80; layout_type (float80_type_node); } lang_hooks.types.register_builtin_type (float80_type_node, "__float80"); and i386-interix.h:#undef LONG_DOUBLE_TYPE_SIZE i386-interix.h:#define LONG_DOUBLE_TYPE_SIZE 64 long double may not be 80-bit. But i386.c has case XFmode: REAL_VALUE_TO_TARGET_LONG_DOUBLE (r, l); parts[2] = gen_int_mode (l[2], SImode); break; It assumes long double is in XFmode. It should simply use real_to_target (l, &r, mode); instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE (r, l); ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/54347] REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used with XFmode 2012-08-21 15:00 [Bug target/54347] New: REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used in i386 hjl.tools at gmail dot com @ 2012-08-22 13:56 ` hjl.tools at gmail dot com 2012-08-22 19:44 ` hjl at gcc dot gnu.org 2012-10-24 9:36 ` hjl.tools at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: hjl.tools at gmail dot com @ 2012-08-22 13:56 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54347 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.8.0 --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-08-22 13:56:00 UTC --- This is similar to PR 15290. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/54347] REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used with XFmode 2012-08-21 15:00 [Bug target/54347] New: REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used in i386 hjl.tools at gmail dot com 2012-08-22 13:56 ` [Bug target/54347] REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used with XFmode hjl.tools at gmail dot com @ 2012-08-22 19:44 ` hjl at gcc dot gnu.org 2012-10-24 9:36 ` hjl.tools at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: hjl at gcc dot gnu.org @ 2012-08-22 19:44 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54347 --- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2012-08-22 19:44:04 UTC --- Author: hjl Date: Wed Aug 22 19:43:58 2012 New Revision: 190598 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190598 Log: Replace REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target PR target/54347 * config/i386/i386.c (ix86_split_to_parts): Replace REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.c ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/54347] REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used with XFmode 2012-08-21 15:00 [Bug target/54347] New: REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used in i386 hjl.tools at gmail dot com 2012-08-22 13:56 ` [Bug target/54347] REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used with XFmode hjl.tools at gmail dot com 2012-08-22 19:44 ` hjl at gcc dot gnu.org @ 2012-10-24 9:36 ` hjl.tools at gmail dot com 2 siblings, 0 replies; 4+ messages in thread From: hjl.tools at gmail dot com @ 2012-10-24 9:36 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54347 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2012-10-24 09:35:46 UTC --- Fixed. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-24 9:36 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-08-21 15:00 [Bug target/54347] New: REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used in i386 hjl.tools at gmail dot com 2012-08-22 13:56 ` [Bug target/54347] REAL_VALUE_TO_TARGET_LONG_DOUBLE shouldn't be used with XFmode hjl.tools at gmail dot com 2012-08-22 19:44 ` hjl at gcc dot gnu.org 2012-10-24 9:36 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).