]> sourceware.org Git - glibc.git/commitdiff
Bug 20729: Fix build failures on ppc64 and other arches.
authorCarlos O'Donell <carlos@redhat.com>
Wed, 2 Nov 2016 17:01:36 +0000 (13:01 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Wed, 2 Nov 2016 17:01:36 +0000 (13:01 -0400)
The changes to fix bug 20729 introduced an error which removed an
ignore diagnostic from -O2 by using the new -Os related macro.
This broke ppc64 builds. This commit fixes the mistake.

Tested on x86, x86_64, ppc64, ppc64le, arm, aarch64, and s390x.

ChangeLog
resolv/res_send.c

index e16451af058df9b9b1646870c34f835ed95af3e4..920396a6f669204413987443060f0a526c6ddc93 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-11-02  Florian Weimer  <fweimer@redhat.com>
+           Carlos O'Donell  <carlos@redhat.com>
+
+       [Bug #20729]
+       * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
+       change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
+       for -Os related change.
+
 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
 
        * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
index 4ec8c1a16d795655cb9aef16ec608aa60b1e46aa..e96d5d409d3aa570223b0adf18a9d7e477c4c74c 100644 (file)
@@ -664,7 +664,7 @@ send_vc(res_state statp,
           a false-positive.
         */
        DIAG_PUSH_NEEDS_COMMENT;
-       DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
+       DIAG_IGNORE_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
        int resplen;
        DIAG_POP_NEEDS_COMMENT;
        struct iovec iov[4];
@@ -937,7 +937,7 @@ reopen (res_state statp, int *terrno, int ns)
                   the function return -1 before control flow reaches
                   the call to connect with slen.  */
                DIAG_PUSH_NEEDS_COMMENT;
-               DIAG_IGNORE_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
+               DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
                if (connect(EXT(statp).nssocks[ns], nsap, slen) < 0) {
                DIAG_POP_NEEDS_COMMENT;
                        Aerror(statp, stderr, "connect(dg)", errno, nsap);
This page took 0.176271 seconds and 5 git commands to generate.