public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Florian Weimer via Libc-alpha <libc-alpha@sourceware.org>,
	DJ Delorie <dj@redhat.com>,
	Adhemerval Zanella <adhemerval.zanella@linaro.org>,
	Siddhesh Poyarekar <siddhesh@redhat.com>
Subject: Re: [PATCH] malloc: Remove bin scanning from memalign (bug 30723)
Date: Mon, 14 Aug 2023 11:16:06 +0200	[thread overview]
Message-ID: <878raec7c9.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <87bkfc92hf.fsf@linux-m68k.org> (Andreas Schwab's message of "Sat, 12 Aug 2023 08:52:28 +0200")

* Andreas Schwab:

> malloc.c: In function '_int_free':
> malloc.c:4496:13: error: unused variable 'fwd' [-Werror=unused-variable]
>  4496 |   mchunkptr fwd;               /* misc temp for linking */
>       |             ^~~
> malloc.c:4495:13: error: unused variable 'bck' [-Werror=unused-variable]
>  4495 |   mchunkptr bck;               /* misc temp for linking */
>       |             ^~~
> malloc.c:4494:19: error: unused variable 'prevsize' [-Werror=unused-variable]
>  4494 |   INTERNAL_SIZE_T prevsize;    /* size of previous contiguous chunk */
>       |                   ^~~~~~~~
> malloc.c:4493:7: error: unused variable 'nextinuse' [-Werror=unused-variable]
>  4493 |   int nextinuse;               /* true if nextchunk is used */
>       |       ^~~~~~~~~
> malloc.c:4492:19: error: unused variable 'nextsize' [-Werror=unused-variable]
>  4492 |   INTERNAL_SIZE_T nextsize;    /* its size */
>       |                   ^~~~~~~~
> malloc.c:4491:13: error: unused variable 'nextchunk' [-Werror=unused-variable]
>  4491 |   mchunkptr nextchunk;         /* next contiguous chunk */
>       |             ^~~~~~~~~
> cc1: all warnings being treated as errors
> make[2]: *** [../o-iterator.mk:9: /home/abuild/rpmbuild/BUILD/glibc-2.38.9000.31.g084fb31bc2/cc-base/malloc/malloc.o] Error 1

Found it, I believe I'm not seeing this because of:

commit 78ceef25d64efeeb6067d1cb282a00466e637e2a
Author: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Date:   Mon Jul 24 14:22:27 2023 -0300

    configure: Remove --enable-all-warnings option
    
    The option is not activelly tested and has bitrotten, to fix it
    would require a lot of work and multiple fixes.  A better option
    would to evaluate each option and enable the warning if it makes
    sense.
    Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>

diff --git a/Makeconfig b/Makeconfig
index 77d7fd14df..c4dd9ea8f2 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -857,12 +857,7 @@ host-test-program-cmd = $(host-built-program-cmd)
 endif
 
 # Extra flags to pass to GCC.
-ifeq ($(all-warnings),yes)
-+gccwarn := -Wall -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wmissing-noreturn -Wmissing-prototypes -Wmissing-declarations -Wcomment -Wcomments -Wtrigraphs -Wsign-compare -Wfloat-equal -Wmultichar
-else
-+gccwarn := -Wall -Wwrite-strings
-endif
-+gccwarn += -Wundef
+gccwarn := -Wall -Wwrite-strings -Wundef
 ifeq ($(enable-werror),yes)
 +gccwarn += -Werror
 endif

It dropped -Wall from glibc's default CFLAGS due to a typo (gccwarn
instead of +gccwarn).

Will test a fix with build-many-glibcs.py.

Thanks,
Florian


  parent reply	other threads:[~2023-08-14  9:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-10 17:36 Florian Weimer
2023-08-10 18:04 ` DJ Delorie
2023-08-11  7:20   ` Florian Weimer
2023-08-11 23:14     ` DJ Delorie
2023-08-21 14:01     ` Sam James
2023-08-21 14:45       ` Florian Weimer
2023-08-11  8:54 ` Maxim Kuvyrkov
2023-08-11  9:14   ` Florian Weimer
2023-08-11 14:52     ` Florian Weimer
2023-08-12  6:52 ` Andreas Schwab
2023-08-12 13:23   ` Florian Weimer
2023-08-12 13:33     ` Florian Weimer
2023-08-12 14:50       ` Andreas Schwab
2023-08-14  2:14       ` Xi Ruoyao
2023-08-14  9:16   ` Florian Weimer [this message]
2023-08-15 11:58     ` Adhemerval Zanella Netto
2023-08-14  9:42 Florian Weimer
2023-08-14 20:49 ` DJ Delorie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878raec7c9.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=dj@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=schwab@linux-m68k.org \
    --cc=siddhesh@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).