This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/79216] Feature request: byte order attributes
- From: "hpa at zytor dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Jan 2017 21:01:08 +0000
- Subject: [Bug c/79216] Feature request: byte order attributes
- Auto-submitted: auto-generated
- References: <bug-79216-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79216
--- Comment #1 from H. Peter Anvin <hpa at zytor dot com> ---
The idea being that assignments to/from such a data item would make the
compiler generate the appropriate byte-swapping instructions appropriate for
the architecture. If part of a packed structure, this would combine with the
appropriate instructions for unaligned references.