diff options
author | Pedro Alves <palves@redhat.com> | 2015-12-16 22:56:48 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-12-16 22:56:49 +0000 |
commit | 7544db951abbb5dca5373dcc7ae83ed60c0782ad (patch) | |
tree | 1d330718ad64483b8d7aea34ebc97152168d4b12 /gdb/ChangeLog | |
parent | a4e22a5df64a46bc99f737a982c0b9d1e8a45e2b (diff) | |
download | binutils-7544db951abbb5dca5373dcc7ae83ed60c0782ad.zip binutils-7544db951abbb5dca5373dcc7ae83ed60c0782ad.tar.gz binutils-7544db951abbb5dca5373dcc7ae83ed60c0782ad.tar.bz2 |
Fix -Wno-unknown-warning support detection
Ref: https://sourceware.org/ml/gdb/2015-12/msg00024.html
We have code in configure.ac that tries to detect whether the compiler
supports each warning and suppress it if not, but that doesn't work
with "-Wno-" options, because gcc doesn't error out for
-Wno-unknown-warning unless other diagnostics are being produced.
See https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html.
Handle this by checking whether -Wfoo works when we actually want
-Wno-foo.
gdb/ChangeLog:
2015-12-16 Pedro Alves <palves@redhat.com>
* configure.ac (compiler warning flags): When testing a
-Wno-foo option, check whether -Wfoo works instead.
* configure: Regenerate.
gdb/gdbserver/ChangeLog:
2015-12-16 Pedro Alves <palves@redhat.com>
* configure.ac (compiler warning flags): When testing a
-Wno-foo option, check whether -Wfoo works instead.
* configure: Regenerate.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fcb0e30..4d75eea 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2015-12-16 Pedro Alves <palves@redhat.com> + * configure.ac (compiler warning flags): When testing a + -Wno-foo option, check whether -Wfoo works instead. + * configure: Regenerate. + +2015-12-16 Pedro Alves <palves@redhat.com> + * common/vec.h (vec_offset): New macro. (DEF_VEC_ALLOC_FUNC_I, DEF_VEC_ALLOC_FUNC_O): Use it instead of offsetof. |