public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/65476] New: Long_Float array does not byte swap correctly when set to Scalar_Storage_Order with High Order First
@ 2015-03-19 22:11 daniel.merrill at psware dot com
  2015-04-29 10:50 ` [Bug ada/65476] Long_Float array does not byte-swap correctly with reverse Scalar_Storage_Order ebotcazou at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: daniel.merrill at psware dot com @ 2015-03-19 22:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65476

            Bug ID: 65476
           Summary: Long_Float array does not byte swap correctly when set
                    to Scalar_Storage_Order with High Order First
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daniel.merrill at psware dot com
                CC: ebotcazou at gcc dot gnu.org

Created attachment 35067
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35067&action=edit
code to reproduce the issue.

When an array of Long_Floats is set to a scalar_storage_order of
High_Order_First, only the two 32 bit words that make up the 64 bit value are
swapped with each other but the bytes under those words are not swapped
properly. Attached is a simple program that reproduces the behavior. If you
examine the stored values you could get the right value by performing a byte
swap on the underlying 32 bit value.


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

end of thread, other threads:[~2015-05-01 13:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-19 22:11 [Bug ada/65476] New: Long_Float array does not byte swap correctly when set to Scalar_Storage_Order with High Order First daniel.merrill at psware dot com
2015-04-29 10:50 ` [Bug ada/65476] Long_Float array does not byte-swap correctly with reverse Scalar_Storage_Order ebotcazou at gcc dot gnu.org
2015-04-29 11:15 ` ebotcazou at gcc dot gnu.org
2015-04-30 15:02 ` ebotcazou at gcc dot gnu.org
2015-04-30 15:03 ` ebotcazou at gcc dot gnu.org
2015-05-01 13:24 ` ebotcazou at gcc dot gnu.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).