--- Comment #7 from kai dot extern at googlemail dot com 2010-02-27 20:34
---
(In reply to comment #6)
>
> *** This bug has been marked as a duplicate of 42587 ***
>
Oh? 42587 seems to be about not recognising memory bswap, which explains why my
first attempt didn't work. But that wa
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-02-27 20:04 ---
*** This bug has been marked as a duplicate of 42587 ***
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
--
--- Comment #5 from pinskia at gcc dot gnu dot org 2010-02-27 17:25 ---
I just think your endian swap is not recognized by the bswap pass. The main
reason is because of byte_sex function which is not optimized at the tree
level. But really there are better ways of writing endian swaps.
--- Comment #4 from kai dot extern at googlemail dot com 2010-02-27 13:46
---
> You are violating c++ aliasing rules. You access a uint8_t via
> different types.un
Actually, I address other types via uint8_t, but that is neither here nor
there. (Oh, I just realized you probably didn
--- Comment #3 from pinskia at gmail dot com 2010-02-27 13:06 ---
Subject: Re: New: Endianness and Optimization
Sent from my iPhone
On Feb 27, 2010, at 2:56 AM, "kai dot extern at googlemail dot com"
wrote:
> The attached code (which tries to generically load given-endianness
>
--- Comment #2 from kai dot extern at googlemail dot com 2010-02-27 11:01
---
Created an attachment (id=19975)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19975&action=view)
Disassembled output
The results from compiling the source
--
http://gcc.gnu.org/bugzilla/show_bug.
--- Comment #1 from kai dot extern at googlemail dot com 2010-02-27 10:59
---
Created an attachment (id=19974)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19974&action=view)
C++ Source
The source file to demonstrate the problem
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?i