diff options
author | Gary Benson <gbenson@redhat.com> | 2020-11-02 11:52:41 +0000 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2020-11-02 11:52:41 +0000 |
commit | 7ea44a51faeb81644eeb14f06db15cfb4a65d59e (patch) | |
tree | 296dff3206b8fc96bfca3fa0a8f8d690d98f9fb4 /bfd/elf-linker-x86.h | |
parent | ab8f783d7ad51895d961b1bc6b82abcd8118e9a1 (diff) | |
download | gdb-7ea44a51faeb81644eeb14f06db15cfb4a65d59e.zip gdb-7ea44a51faeb81644eeb14f06db15cfb4a65d59e.tar.gz gdb-7ea44a51faeb81644eeb14f06db15cfb4a65d59e.tar.bz2 |
Fix testcases using __attribute__((noclone)) with Clang
Clang fails to compile a number of files with the following warning:
unknown attribute 'noclone' ignored [-Wunknown-attributes]. This
commit adds a new header, lib/noclone.h, which defines the macro
ATTRIBUTE_NOCLONE accordingly, and updates the relevant testcases
to use it.
gdb/testsuite/ChangeLog:
* lib/attributes.h: New header.
* gdb.base/backtrace.c: Include the above. Replace
__attribute__(noclone)) with ATTRIBUTE_NOCLONE.
* gdb.base/infcall-nested-structs.c: Likewise.
* gdb.base/vla-optimized-out.c: Likewise.
Diffstat (limited to 'bfd/elf-linker-x86.h')
0 files changed, 0 insertions, 0 deletions