diff options
author | Pedro Alves <pedro@palves.net> | 2020-09-13 18:17:18 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2020-09-13 18:17:18 +0100 |
commit | c49da0e466e1bcb6e1f363ea4a806cfd2c322cb0 (patch) | |
tree | 4c282baf4e1e016f5ffa0e4a0bf0744e606d0019 /gdb/python/py-lazy-string.c | |
parent | 6791b1172abea5867268c95a460aba1c66c2b6b0 (diff) | |
download | binutils-c49da0e466e1bcb6e1f363ea4a806cfd2c322cb0.zip binutils-c49da0e466e1bcb6e1f363ea4a806cfd2c322cb0.tar.gz binutils-c49da0e466e1bcb6e1f363ea4a806cfd2c322cb0.tar.bz2 |
Fix a couple gdb.dwarf2/ testcases with "clang -flto"
gdb.dwarf2/atomic-type.exp and gdb.dwarf2/ada-linkage-name.exp fail
when testing with "clang -flto" as compiler, like:
$ make check TESTS="gdb.dwarf2/ada-linkage-name.exp" RUNTESTFLAGS="CC_FOR_TARGET='clang -flto'"
because with -flto, functions that aren't referenced anywhere are not
emitted in the final binary. Fix it by adding uses of the functions.
gdb/testsuite/ChangeLog:
* gdb.dwarf2/ada-linkage-name.c (main): Move to the bottom of the
file and add calls to first and second.
* gdb.dwarf2/atomic.c (main): Move to the bottom of the file and
add call to f.
Diffstat (limited to 'gdb/python/py-lazy-string.c')
0 files changed, 0 insertions, 0 deletions