Hello community, here is the log from the commit of package glibc for openSUSE:Factory checked in at 2019-07-08 15:06:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/glibc (Old) and /work/SRC/openSUSE:Factory/.glibc.new.4615 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "glibc" Mon Jul 8 15:06:38 2019 rev:231 rq:712159 version:2.29 Changes: -------- --- /work/SRC/openSUSE:Factory/glibc/glibc.changes 2019-05-21 10:19:49.403630849 +0200 +++ /work/SRC/openSUSE:Factory/.glibc.new.4615/glibc.changes 2019-07-08 15:06:42.207049698 +0200 @@ -1,0 +2,21 @@ +Wed Jun 26 07:41:20 UTC 2019 - Andreas Schwab <sch...@suse.de> + +- malloc-tests-warnings.patch: Fix warnings in malloc tests with GCC 9 + +------------------------------------------------------------------- +Tue Jun 25 07:30:13 UTC 2019 - Martin Liška <mli...@suse.cz> + +- Set optflags for i686 after _lto_cflags is set (boo#1138807). + +------------------------------------------------------------------- +Thu Jun 20 10:02:20 UTC 2019 - Martin Liška <mli...@suse.cz> + +- Disable LTO due to a usage of top-level assembler that + causes LTO issues (boo#1138807). + +------------------------------------------------------------------- +Wed Jun 12 12:10:59 UTC 2019 - Andreas Schwab <sch...@suse.de> + +- nss-files-long-lines-2.patch: Remove obsolete patch + +------------------------------------------------------------------- Old: ---- nss-files-long-lines-2.patch New: ---- malloc-tests-warnings.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ glibc.spec ++++++ --- /var/tmp/diff_new_pack.LyGAhU/_old 2019-07-08 15:06:48.375059023 +0200 +++ /var/tmp/diff_new_pack.LyGAhU/_new 2019-07-08 15:06:48.375059023 +0200 @@ -83,7 +83,6 @@ %if "%flavor" == "i686" ExclusiveArch: i586 i686 BuildArch: i686 -%global optflags %(echo "%optflags"|sed -e s/i586/i686/) -march=i686 -mtune=generic %endif %define __filter_GLIBC_PRIVATE 1 @@ -300,6 +299,8 @@ Patch1014: malloc-large-bin-corruption-check.patch # PATCH-FIX-UPSTREAM Fix crash in _IO_wfile_sync (BZ #20568) Patch1015: wfile-sync-crash.patch +# PATCH-FIX-UPSTREAM malloc: Fix warnings in tests with GCC 9 +Patch1016: malloc-tests-warnings.patch ### # Patches awaiting upstream approval @@ -308,8 +309,6 @@ Patch2000: fix-locking-in-_IO_cleanup.patch # PATCH-FIX-UPSTREAM Fix fnmatch handling of collating elements (BZ #17396, BZ #16976) Patch2004: fnmatch-collating-elements.patch -# PATCH-FIX-UPSTREAM Properly reread entry after failure in nss_files getent function (BZ #18991) -Patch2005: nss-files-long-lines-2.patch # PATCH-FIX-UPSTREAM Fix iconv buffer handling with IGNORE error handler (BZ #18830) Patch2006: iconv-reset-input-buffer.patch # PATCH-FIX-UPSTREAM Avoid concurrency problem in ldconfig (BZ #23973) @@ -527,10 +526,10 @@ %patch1013 -p1 %patch1014 -p1 %patch1015 -p1 +%patch1016 -p1 %patch2000 -p1 %patch2004 -p1 -%patch2005 -p1 %patch2006 -p1 %patch2007 -p1 @@ -557,6 +556,12 @@ find . -name configure | xargs touch %build +# Disable LTO due to a usage of top-level assembler that +# causes LTO issues (boo#1138807). +%define _lto_cflags %{nil} +%if "%flavor" == "i686" +%global optflags %(echo "%optflags"|sed -e s/i586/i686/) -march=i686 -mtune=generic +%endif if [ -x /bin/uname.bin ]; then /bin/uname.bin -a else ++++++ malloc-tests-warnings.patch ++++++ 2019-04-18 Adhemerval Zanella <adhemerval.zane...@linaro.org> * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than= around tests of malloc with negative sizes. * malloc/tst-malloc-too-large.c (do_test): Likewise. Index: glibc-2.29/malloc/tst-malloc-too-large.c =================================================================== --- glibc-2.29.orig/malloc/tst-malloc-too-large.c +++ glibc-2.29/malloc/tst-malloc-too-large.c @@ -72,13 +72,28 @@ test_large_allocations (size_t size) void * ptr_to_realloc; test_setup (); + DIAG_PUSH_NEEDS_COMMENT; +#if __GNUC_PREREQ (7, 0) + /* GCC 7 warns about too-large allocations; here we want to test + that they fail. */ + DIAG_IGNORE_NEEDS_COMMENT (7, "-Walloc-size-larger-than="); +#endif TEST_VERIFY (malloc (size) == NULL); +#if __GNUC_PREREQ (7, 0) + DIAG_POP_NEEDS_COMMENT; +#endif TEST_VERIFY (errno == ENOMEM); ptr_to_realloc = malloc (16); TEST_VERIFY_EXIT (ptr_to_realloc != NULL); test_setup (); +#if __GNUC_PREREQ (7, 0) + DIAG_IGNORE_NEEDS_COMMENT (7, "-Walloc-size-larger-than="); +#endif TEST_VERIFY (realloc (ptr_to_realloc, size) == NULL); +#if __GNUC_PREREQ (7, 0) + DIAG_POP_NEEDS_COMMENT; +#endif TEST_VERIFY (errno == ENOMEM); free (ptr_to_realloc); @@ -135,7 +150,13 @@ test_large_aligned_allocations (size_t s for (align = 1; align <= pagesize; align *= 2) { test_setup (); +#if __GNUC_PREREQ (7, 0) + DIAG_IGNORE_NEEDS_COMMENT (7, "-Walloc-size-larger-than="); +#endif TEST_VERIFY (memalign (align, size) == NULL); +#if __GNUC_PREREQ (7, 0) + DIAG_POP_NEEDS_COMMENT; +#endif TEST_VERIFY (errno == ENOMEM); /* posix_memalign expects an alignment that is a power of 2 *and* a @@ -151,7 +172,13 @@ test_large_aligned_allocations (size_t s if ((size % align) == 0) { test_setup (); +#if __GNUC_PREREQ (7, 0) + DIAG_IGNORE_NEEDS_COMMENT (7, "-Walloc-size-larger-than="); +#endif TEST_VERIFY (aligned_alloc (align, size) == NULL); +#if __GNUC_PREREQ (7, 0) + DIAG_POP_NEEDS_COMMENT; +#endif TEST_VERIFY (errno == ENOMEM); } } @@ -159,11 +186,23 @@ test_large_aligned_allocations (size_t s /* Both valloc and pvalloc return page-aligned memory. */ test_setup (); +#if __GNUC_PREREQ (7, 0) + DIAG_IGNORE_NEEDS_COMMENT (7, "-Walloc-size-larger-than="); +#endif TEST_VERIFY (valloc (size) == NULL); +#if __GNUC_PREREQ (7, 0) + DIAG_POP_NEEDS_COMMENT; +#endif TEST_VERIFY (errno == ENOMEM); test_setup (); +#if __GNUC_PREREQ (7, 0) + DIAG_IGNORE_NEEDS_COMMENT (7, "-Walloc-size-larger-than="); +#endif TEST_VERIFY (pvalloc (size) == NULL); +#if __GNUC_PREREQ (7, 0) + DIAG_POP_NEEDS_COMMENT; +#endif TEST_VERIFY (errno == ENOMEM); } Index: glibc-2.29/malloc/tst-memalign.c =================================================================== --- glibc-2.29.orig/malloc/tst-memalign.c +++ glibc-2.29/malloc/tst-memalign.c @@ -21,6 +21,7 @@ #include <stdio.h> #include <string.h> #include <unistd.h> +#include <libc-diag.h> static int errors = 0; @@ -41,9 +42,18 @@ do_test (void) errno = 0; + DIAG_PUSH_NEEDS_COMMENT; +#if __GNUC_PREREQ (7, 0) + /* GCC 7 warns about too-large allocations; here we want to test + that they fail. */ + DIAG_IGNORE_NEEDS_COMMENT (7, "-Walloc-size-larger-than="); +#endif /* An attempt to allocate a huge value should return NULL and set errno to ENOMEM. */ p = memalign (sizeof (void *), -1); +#if __GNUC_PREREQ (7, 0) + DIAG_POP_NEEDS_COMMENT; +#endif save = errno;