diff options
author | Gary Benson <gbenson@redhat.com> | 2020-10-06 15:08:37 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2020-10-06 15:08:37 +0100 |
commit | 308975919152fbf301861d88e2da9b522e3cf112 (patch) | |
tree | 07dc6d7b19049a35febae66fe3e8caee3867b0d8 /binutils/objcopy.c | |
parent | ced4a4c1ccfa637940fc17dd3160727793d8b8f2 (diff) | |
download | gdb-308975919152fbf301861d88e2da9b522e3cf112.zip gdb-308975919152fbf301861d88e2da9b522e3cf112.tar.gz gdb-308975919152fbf301861d88e2da9b522e3cf112.tar.bz2 |
Fix gdb.base/list.exp with Clang
Two subtests of gdb.base/list.exp failed when built with Clang
because the unused function "unused" was optimized out. This
commit adds __attribute__ ((used)) to both definitions.
gdb/testsuite/ChangeLog:
* gdb.base/list0.c (unused): Add __attribute__ ((used)).
* gdb.base/list1.c (unused): Likewise.
Diffstat (limited to 'binutils/objcopy.c')
0 files changed, 0 insertions, 0 deletions