This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/18712] bits/string2.h incompatible with -O2 -Werror=packed -Wsystem-headers


https://sourceware.org/bugzilla/show_bug.cgi?id=18712

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|jsm28 at gcc dot gnu.org           |unassigned at gcc dot gnu.org
            Summary|ARM <string.h> incompatible |bits/string2.h incompatible
                   |with -O2 -Werror=packed     |with -O2 -Werror=packed
                   |-Wsystem-headers            |-Wsystem-headers

--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
This is nothing to do with ARM; exactly the same appears on other
strict-alignment configurations (e.g. MIPS), while non-strict-alignment
configurations (e.g. most Power processors) produce "error: packed attribute is
unnecessary".  And bits/string2.h is architecture-independent.

I don't see *why* you get the "inefficient" warning, instead of "unnecessary"
in all cases (packed should make no difference to these structures, for normal
ABIs as opposed to e.g. old-ABI ARM).  But if the warnings are bogus, that's a
GCC issue.

I'm not sure if the code using these types is active at all for current GCC
other than in the _FORCE_INLINES case.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]