public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/30530]  New: dfp.c assumes DPD encoding
@ 2007-01-21 19:08 hjl at lucon dot org
  2007-01-21 20:52 ` [Bug other/30530] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hjl at lucon dot org @ 2007-01-21 19:08 UTC (permalink / raw)
  To: gcc-bugs

dfp.c uses the sig field to store encoded value and only uses access
routines in libdecnumber to manipulate it so that dfp.c can be encoding
neutral. But there are

659         decimal128 *d128;
660         *r = *op0;
661         d128 = (decimal128 *) r->sig;
662         /* Flip high bit.  */
663         d128->bytes[0] ^= 1 << 7;
664         /* Keep sign field in sync.  */
665         r->sign ^= 1;

671         decimal128 *d128;
672         *r = *op0;
673         d128 = (decimal128 *) r->sig;
674         /* Clear high bit.  */
675         d128->bytes[0] &= 0x7f;
676         /* Keep sign field in sync.  */
677         r->sign = 0;

714   if (sign)
715     r->sig[0] |= 0x80000000;

They won't work with BID encoding.


-- 
           Summary: dfp.c assumes DPD encoding
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30530


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug other/30530] dfp.c assumes DPD encoding
  2007-01-21 19:08 [Bug other/30530] New: dfp.c assumes DPD encoding hjl at lucon dot org
@ 2007-01-21 20:52 ` pinskia at gcc dot gnu dot org
  2007-01-21 21:56 ` hjl at lucon dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-21 20:52 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30530


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug other/30530] dfp.c assumes DPD encoding
  2007-01-21 19:08 [Bug other/30530] New: dfp.c assumes DPD encoding hjl at lucon dot org
  2007-01-21 20:52 ` [Bug other/30530] " pinskia at gcc dot gnu dot org
@ 2007-01-21 21:56 ` hjl at lucon dot org
  2007-01-21 23:26 ` hjl at lucon dot org
  2007-10-01 20:51 ` hjl at lucon dot org
  3 siblings, 0 replies; 5+ messages in thread
From: hjl at lucon dot org @ 2007-01-21 21:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl at lucon dot org  2007-01-21 21:56 -------
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01743.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30530


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug other/30530] dfp.c assumes DPD encoding
  2007-01-21 19:08 [Bug other/30530] New: dfp.c assumes DPD encoding hjl at lucon dot org
  2007-01-21 20:52 ` [Bug other/30530] " pinskia at gcc dot gnu dot org
  2007-01-21 21:56 ` hjl at lucon dot org
@ 2007-01-21 23:26 ` hjl at lucon dot org
  2007-10-01 20:51 ` hjl at lucon dot org
  3 siblings, 0 replies; 5+ messages in thread
From: hjl at lucon dot org @ 2007-01-21 23:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl at lucon dot org  2007-01-21 23:26 -------
The updated patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01750.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30530


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug other/30530] dfp.c assumes DPD encoding
  2007-01-21 19:08 [Bug other/30530] New: dfp.c assumes DPD encoding hjl at lucon dot org
                   ` (2 preceding siblings ...)
  2007-01-21 23:26 ` hjl at lucon dot org
@ 2007-10-01 20:51 ` hjl at lucon dot org
  3 siblings, 0 replies; 5+ messages in thread
From: hjl at lucon dot org @ 2007-10-01 20:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl at lucon dot org  2007-10-01 20:50 -------
Fixed.


-- 

hjl at lucon dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30530


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-10-01 20:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-21 19:08 [Bug other/30530] New: dfp.c assumes DPD encoding hjl at lucon dot org
2007-01-21 20:52 ` [Bug other/30530] " pinskia at gcc dot gnu dot org
2007-01-21 21:56 ` hjl at lucon dot org
2007-01-21 23:26 ` hjl at lucon dot org
2007-10-01 20:51 ` hjl at lucon dot org

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