]> git.ipfire.org Git - thirdparty/glibc.git/commit
Fix two more -Os strcoll / wcscoll build failures.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 27 Feb 2018 16:54:14 +0000 (16:54 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 27 Feb 2018 16:55:42 +0000 (16:55 +0000)
commit02f2fead8f702676a4691781432dff2422669dfd
treebf4dd6f2e7ac8388b2c0670bd1d708ecfa20c87b
parent874c56d7979858bbb1bb1604c55769ad0ce7a072
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
locale/weightwc.h