From f54d8f735ab7647713b4f8e63282bd7a920234e1 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 26 Feb 2018 18:38:01 +0000 Subject: Fix another -Os strcoll build issue. While there are now clean -Os build and test results on x86_64 (given my patch , pending review), testing with -Os with build-many-glibcs.py shows the build is still failing with -Os everywhere except for x86_64, x86 and s390x. There are a variety of different build failures, but the most common seem to be in strcoll / wcscoll, similar to existing such cases where DIAG_* are used to disable -Wmaybe-uninitialized. There are various different failures even within those functions. This patch fixes one particular case that seems quite common, where the warning appears at the declarations of seq1 and seq2. Tested with build-many-glibcs.py that this fixes the -Os build for aarch64-linux-gnu with GCC 7. * string/strcoll_l.c: Include . (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around declarations of seq1 and seq2. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index f7e7204c4f..a556c3bf7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2018-02-26 Joseph Myers + * string/strcoll_l.c: Include . + (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around + declarations of seq1 and seq2. + [BZ #15105] * stdlib/atoi.c (atoi): Use libc_hidden_def. * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto. -- cgit 1.4.1