[Bug corefiles/21206] gdb-7.12.1 for arm-rtems4.12 fails to build on FreeBSD 11.0

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Wed Mar 8 16:21:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21206

--- Comment #8 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Pedro Alves <palves@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=15c22686d0e33d87262bc9075296eeddd7d955f7

commit 15c22686d0e33d87262bc9075296eeddd7d955f7
Author: Pedro Alves <palves@redhat.com>
Date:   Wed Mar 8 15:52:16 2017 +0000

    gdb: Fix ATTRIBUTE_NONNULL usage

    Should fix the build failure with Clang mentioned at
        <https://sourceware.org/bugzilla/show_bug.cgi?id=21206#c2>:

     In file included from ../../binutils-gdb/gdb/dwarf2read.c:72:
     ../../binutils-gdb/gdb/common/gdb_unlinker.h:35:35: error: '__nonnull__'
attribute is invalid for the implicit this argument
       unlinker (const char *filename) ATTRIBUTE_NONNULL (1)
                                   ^                  ~
     ../../binutils-gdb/gdb/../include/ansidecl.h:169:48: note: expanded from
macro 'ATTRIBUTE_NONNULL'
     #  define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))

    gdb/ChangeLog:
    2017-03-08  Pedro Alves  <palves@redhat.com>

        PR 21206
        * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
        goes to argument 2, not 1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list