From: Nick Clifton <nickc@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>, binutils@sourceware.org
Subject: Re: [gdbadmin@sourceware.org: make-snapshot gdb current failed]
Date: Tue, 22 Mar 2016 09:39:00 -0000 [thread overview]
Message-ID: <56F112CF.80707@redhat.com> (raw)
In-Reply-To: <20160322034647.GH3686@adacore.com>
[-- Attachment #1: Type: text/plain, Size: 704 bytes --]
Hi Joel,
> FYI guys,
>
> the GDB snapshot just failed tonight. This is the log file.
> Maybe because the GDB on sourceware is still 4.4 and does not support
> -Wstack-usage?
>
> Can we make the use of that option conditionalized on its support?
Sorry about that.
I have checked in the attached patch, which I hope will fix the problem.
Please could you let me know if it does not work.
Cheers
Nick
bfd/ChangeLog
2016-03-22 Nick Clifton <nickc@redhat.com>
* warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
sufficiently recent version of GCC.
* configure: Regenerate.
binutils,gas,gprof,gold,ld,opcodes
2016-03-22 Nick Clifton <nickc@redhat.com>
* configure: Regenerate.
[-- Attachment #2: warning.m4.patch --]
[-- Type: text/x-patch, Size: 1027 bytes --]
diff --git a/bfd/warning.m4 b/bfd/warning.m4
index 0e838f6..028d079 100644
--- a/bfd/warning.m4
+++ b/bfd/warning.m4
@@ -21,9 +21,16 @@ AC_DEFUN([AM_BINUTILS_WARNINGS],[
# Set the 'development' global.
. $srcdir/../bfd/development.sh
+# Default set of GCC warnings to enable.
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+
+# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
AC_EGREP_CPP([^[0-3]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow")
+# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
+AC_EGREP_CPP([^[0-4]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144")
+
+
AC_ARG_ENABLE(werror,
[ --enable-werror treat compile warnings as errors],
[case "${enableval}" in
@@ -49,7 +56,7 @@ fi
NO_WERROR=
if test "${ERROR_ON_WARNING}" = yes ; then
- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror -Wstack-usage=262144"
+ GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
NO_WERROR="-Wno-error"
fi
next prev parent reply other threads:[~2016-03-22 9:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-22 3:47 Joel Brobecker
2016-03-22 9:39 ` Nick Clifton [this message]
2016-03-22 13:25 ` Joel Brobecker
-- strict thread matches above, loose matches on Subject: below --
2011-07-14 6:49 Joel Brobecker
2011-07-14 7:12 ` Alan Modra
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=56F112CF.80707@redhat.com \
--to=nickc@redhat.com \
--cc=binutils@sourceware.org \
--cc=brobecker@adacore.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).