From 93fe09cb5fbf68e473d5514adc069d2f6115cc23 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Sat, 29 Oct 2016 23:45:40 -0400 Subject: Bug 20729: Fix building with -Os. This commit adds a new DIAG_IGNORE_Os_NEEDS_COMMENT which is only enabled when compiling with -Os. This allows developers working on -Os enabled builds to mark false-positive warnings without impacting the warnings emitted at -O2. Then using the new DIAG_IGNORE_Os_NEEDS_COMMENT we fix 6 warnings generated with GCC 5 to get -Os builds working again. --- ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index cbd4409..8cfa6e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,21 @@ 2016-10-28 Carlos O'Donell + [BZ #20729] + * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT): + Define. + * iso-2022-cn-ext.c: Include libc-internal.h and ignore + -Wmaybe-uninitialized for BODY macro only for -Os compiles. + * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error + for seq2.back_us and seq1.back_us only for -Os compiles. + * locale/weightwc.h (findix): Likewise. + * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for + DB_GET_FIELD_ADDRESS only for -Os compiles. + * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error + for slen only for -Os compiles. + * string/strcoll_l.c (get_next_seq): Ignore + -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only + for -Os compiles. + * elf/Makefile (CFALGS-tst-linkall-static): Remove. * include/crypt.h: New file. -- cgit v1.1