mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
gdb.base/gcore.c (array_func): Add reference to static_array.
Otherwise clang will delete it: it's otherwise unused. gdb/testsuite/ChangeLog: * gdb.base/gcore.c (array_func): Add reference to static_array.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2015-09-28 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* gdb.base/gcore.c (array_func): Add reference to static_array.
|
||||||
|
|
||||||
2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
|
2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
|
||||||
|
|
||||||
* gdb.gdb/selftest.exp (do_steps_and_nexts): Adjust expected
|
* gdb.gdb/selftest.exp (do_steps_and_nexts): Adjust expected
|
||||||
|
@ -46,6 +46,8 @@ array_func ()
|
|||||||
un_initialized_array[i] = extern_array[i] + 8;
|
un_initialized_array[i] = extern_array[i] + 8;
|
||||||
local_array[i] = extern_array[i] + 12;
|
local_array[i] = extern_array[i] + 12;
|
||||||
}
|
}
|
||||||
|
/* Reference static_array so that clang doesn't discard it. */
|
||||||
|
(void) static_array[0];
|
||||||
terminal_func ();
|
terminal_func ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user