aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/memattr.c
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.base/memattr.c
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.base/memattr.c')
-rw-r--r--gdb/testsuite/gdb.base/memattr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/memattr.c b/gdb/testsuite/gdb.base/memattr.c
index 74b2d61..62868b6 100644
--- a/gdb/testsuite/gdb.base/memattr.c
+++ b/gdb/testsuite/gdb.base/memattr.c
@@ -16,11 +16,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#define MEMSIZE 64
-static int mem1[MEMSIZE] = {111, 222, 333, 444, 555};
-static int mem2[MEMSIZE];
-static int mem3[MEMSIZE];
-static int mem4[MEMSIZE];
-static int mem5[MEMSIZE];
+int mem1[MEMSIZE] = {111, 222, 333, 444, 555};
+int mem2[MEMSIZE];
+int mem3[MEMSIZE];
+int mem4[MEMSIZE];
+int mem5[MEMSIZE];
int main()
{