From 02f2fead8f702676a4691781432dff2422669dfd Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 27 Feb 2018 16:54:14 +0000 Subject: Fix two more -Os strcoll / wcscoll build failures. Continuing fixes for -Os build issues shown with build-many-glibcs.py, this patch adds uses of DIAG_* to disable -Wmaybe-uninitialized in two more places where code inlined from strcoll / wcscoll is wrongly diagnosed as possibly using uninitialized structure fields. (All these warnings in different places for these functions are I think essentially the same bug.) Tested with build-many-glibcs.py for alpha-linux-gnu and mips-linux-gnu that this fixes the -Os build failures for those configurations with GCC 7. * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for -Os in two more places. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 687eefd0b6..72f03aa396 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-02-27 Joseph Myers + + * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for + -Os in two more places. + 2018-02-27 Mike FABIAN See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898 -- cgit v1.2.3