mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH v2 0/3] Resolve compiler warnings in master
@ 2019-06-29 23:19 Samuel Holland
  2019-06-29 23:19 ` [PATCH v2 1/3] resolve -Wrestrict warnings Samuel Holland
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Samuel Holland @ 2019-06-29 23:19 UTC (permalink / raw)
  To: musl; +Cc: Samuel Holland

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(-)

-- 
2.21.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-10 21:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-29 23:19 [PATCH v2 0/3] Resolve compiler warnings in master Samuel Holland
2019-06-29 23:19 ` [PATCH v2 1/3] resolve -Wrestrict warnings Samuel Holland
2019-06-29 23:19 ` [PATCH v2 2/3] use the correct attributes for ___errno_location Samuel Holland
2019-06-29 23:19 ` [PATCH v2 3/3] Revert "mips,powerpc: fix TIOCSER_TEMT in termios.h" Samuel Holland
2019-07-10 21:14 ` [PATCH v2 0/3] Resolve compiler warnings in master Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).