Resolve compiler warnings in master

Submitted by Samuel Holland on June 29, 2019, 9:22 p.m.

Details

Reviewer None
Submitted June 29, 2019, 9:22 p.m.
Last Updated June 30, 2019, 9:19 a.m.
Revision 2

Cover Letter

These three patches resolve some compiler warnings about mismatched
attributes, and restrict violations, and a macro redifinition.

Fixing the header prototype for ___errno_location does provide the
expected optimization improvement:

Before:
   text    data     bss     dec     hex filename
 675262    2146   11568  688976   a8350 lib/libc.so

After:
   text    data     bss     dec     hex filename
 674838    2146   11568  688552   a81a8 lib/libc.so

Changes since v1:
- Move the attribute to the prototype in src/include/errno.h
- Add patch 3

Samuel Holland (3):
  resolve -Wrestrict warnings
  use the correct attributes for ___errno_location
  Revert "mips,powerpc: fix TIOCSER_TEMT in termios.h"

 arch/mips/bits/termios.h      | 2 +-
 arch/mips64/bits/termios.h    | 2 +-
 arch/mipsn32/bits/termios.h   | 2 +-
 arch/powerpc/bits/termios.h   | 2 +-
 arch/powerpc64/bits/termios.h | 2 +-
 src/aio/lio_listio.c          | 6 +++---
 src/include/errno.h           | 3 +++
 src/signal/sigset.c           | 8 ++++----
 src/unistd/ualarm.c           | 6 +++---
 9 files changed, 18 insertions(+), 15 deletions(-)
  

Revisions