--- Comment #4 from eric-bugs at omnifarious dot org 2009-05-20 19:17
---
Ahh, OK. I hunted a bit to find something like that, but didn't find it.
Thank you.
I now have a slightly different bug, which is a mild inadequate optimization
bug. :-) I'll cut it down to size and paste it
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-05-20 19:04 ---
So there are builtins in 4.3.0 and above. And there is a patch floating around
to automatically change the manually written byte swap into the builtins.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40210
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-05-20 19:03 ---
Also see http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00421.html .
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40210
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-05-20 19:01 ---
http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Other-Builtins.html#Other-Builtins
Built-in Function: int32_t __builtin_bswap32 (int32_t x)
Returns x with the order of the bytes reversed; for example, 0xaabbccdd beco