[0/6] Fix -Os build

Message ID 20220921135108.3324737-1-adhemerval.zanella@linaro.org
Headers
Series Fix -Os build |

Message

Adhemerval Zanella Netto Sept. 21, 2022, 1:51 p.m. UTC
  This patchset fix the glibc build including tests with -Os.  I checked
with GCC 12 for all supported ABI and run a full make check for x86_64
and i686 without any regressions.

Adhemerval Zanella (5):
  posix: Suppress -Os warnings on fnmatch
  posix: Suppress -Os may be used uninitialized warnings on regexec
  rt: Initialize mq_send input on tst-mqueue{5,6}
  sunrpc: Suppress GCC -Os warning on user2netname
  x86: Fix -Os build (BZ #29576)

Martin Jansa (1):
  locale: prevent maybe-uninitialized errors with -Os [BZ #19444]

 locale/weight.h                        |  7 ++++++
 posix/fnmatch_loop.c                   | 31 ++++++++++++++++++++++++++
 posix/regexec.c                        |  6 +++++
 rt/tst-mqueue5.c                       |  2 +-
 rt/tst-mqueue6.c                       |  2 +-
 sunrpc/netname.c                       |  6 +++++
 sysdeps/x86_64/multiarch/rtld-strcpy.S | 18 +++++++++++++++
 7 files changed, 70 insertions(+), 2 deletions(-)
 create mode 100644 sysdeps/x86_64/multiarch/rtld-strcpy.S
  

Comments

Carlos O'Donell Oct. 5, 2022, 1:40 p.m. UTC | #1
On Wed, Sep 21, 2022 at 10:51:02AM -0300, Adhemerval Zanella via Libc-alpha wrote:
> This patchset fix the glibc build including tests with -Os.  I checked
> with GCC 12 for all supported ABI and run a full make check for x86_64
> and i686 without any regressions.

Thanks for looking into this, I think that both -O2 and -Os are key
baselines that we need to be testing. I should setup a CI/CD builder
that checks -Os.

> Adhemerval Zanella (5):
>   posix: Suppress -Os warnings on fnmatch
>   posix: Suppress -Os may be used uninitialized warnings on regexec
>   rt: Initialize mq_send input on tst-mqueue{5,6}
>   sunrpc: Suppress GCC -Os warning on user2netname
>   x86: Fix -Os build (BZ #29576)
> 
> Martin Jansa (1):
>   locale: prevent maybe-uninitialized errors with -Os [BZ #19444]
> 
>  locale/weight.h                        |  7 ++++++
>  posix/fnmatch_loop.c                   | 31 ++++++++++++++++++++++++++
>  posix/regexec.c                        |  6 +++++
>  rt/tst-mqueue5.c                       |  2 +-
>  rt/tst-mqueue6.c                       |  2 +-
>  sunrpc/netname.c                       |  6 +++++
>  sysdeps/x86_64/multiarch/rtld-strcpy.S | 18 +++++++++++++++
>  7 files changed, 70 insertions(+), 2 deletions(-)
>  create mode 100644 sysdeps/x86_64/multiarch/rtld-strcpy.S
> 
> -- 
> 2.34.1
>