aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-04-10 23:45:28 -0700
committerDavid Blaikie <dblaikie@gmail.com>2014-04-24 22:33:46 -0700
commit2abc3f8d59e0130e5340a5489b53556f12c9d0ce (patch)
treeebf0a63d7b75cc28f95730b831108de8f63e28ff /gdb/testsuite/gdb.trace
parentbfd39632142cba581a430e41ed38c5153d1fc07a (diff)
downloadgdb-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.trace')
-rw-r--r--gdb/testsuite/gdb.trace/actions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.trace/actions.c b/gdb/testsuite/gdb.trace/actions.c
index 04c69f2..497d04d 100644
--- a/gdb/testsuite/gdb.trace/actions.c
+++ b/gdb/testsuite/gdb.trace/actions.c
@@ -116,7 +116,7 @@ unsigned long gdb_c_test( unsigned long *parm )
return ( (unsigned long) 0 );
}
-static void gdb_asm_test (void)
+void gdb_asm_test (void)
{
}