diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-10 23:45:28 -0700 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-24 22:33:46 -0700 |
commit | 2abc3f8d59e0130e5340a5489b53556f12c9d0ce (patch) | |
tree | ebf0a63d7b75cc28f95730b831108de8f63e28ff /gdb/testsuite/gdb.cp | |
parent | bfd39632142cba581a430e41ed38c5153d1fc07a (diff) | |
download | gdb-2abc3f8d59e0130e5340a5489b53556f12c9d0ce.zip gdb-2abc3f8d59e0130e5340a5489b53556f12c9d0ce.tar.gz gdb-2abc3f8d59e0130e5340a5489b53556f12c9d0ce.tar.bz2 |
Ensure unreferenced static symbols aren't omitted by clang (either marking them __attribute__((used)) or making them non-static)
gdb/testsuite/
* gdb.base/catch-syscall.c: Make unreferenced statics non-static to
ensure clang would not discard them.
* gdb.base/gdbvars.c: Ditto.
* gdb.base/memattr.c: Ditto.
* gdb.base/whatis.c: Ditto.
* gdb.python/py-prettyprint.c: Ditto.
* gdb.trace/actions.c: Ditto.
* gdb.cp/ptype-cv-cp.cc: Mark unused global const int as used to
ensure clang would not discard it.
Diffstat (limited to 'gdb/testsuite/gdb.cp')
-rw-r--r-- | gdb/testsuite/gdb.cp/ptype-cv-cp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/ptype-cv-cp.cc b/gdb/testsuite/gdb.cp/ptype-cv-cp.cc index 6546f68..add4021 100644 --- a/gdb/testsuite/gdb.cp/ptype-cv-cp.cc +++ b/gdb/testsuite/gdb.cp/ptype-cv-cp.cc @@ -22,7 +22,7 @@ typedef volatile const_my_int volatile_const_my_int; typedef const volatile_my_int const_volatile_my_int; my_int v_my_int (0); -const_my_int v_const_my_int (1); +__attribute__((used)) const_my_int v_const_my_int (1); volatile_my_int v_volatile_my_int (2); const_volatile_my_int v_const_volatile_my_int (3); volatile_const_my_int v_volatile_const_my_int (4); |