http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47274
--- Comment #31 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-02 16:07:14 UTC --- Created attachment 23217 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23217 gcc46-pr47274.patch I think it is fairly obvious where the bug is (though haven't tried to reproduce it). Passing address of a 32-bit enum variable and outputting from it the first byte obviously will DTRT only on little endian hosts.