https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79216

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to H. Peter Anvin from comment #3)
> It does indeed, I don't know why I missed it.  The only thing that I really
> see as a problem with it is that it doesn't allow the assignment of
> endianness to scalar pointers, e.g.:
> 
> uint32_t __attribute__((scalar_storage_order("big-endian"))) *blah;
> 
> blah = &foo.bar;    /* bigendian field in a structure */

I think that's an implementation detail (as in, not implemented).

> The other thing that seems problematic to me (but this is a
> quality-of-implementation issue, not a syntactic problem) is that it seems
> that the endianness restrictions only apply on opposite-endian
> architectures.  This makes programmer errors more likely.

Reply via email to