bool tell_endian() { unsigned x = 1; return *(char*)&x; } optimized on the RTL level only, split out from PR26069.
Confirmed.
I think this has been fixed in either 6.1.0 or on the trunk.
4.7 actually.