mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
fix gdb.base/access-mem-running.exp for clang testing
Clang was optimizing global_var away because it was not being used anywhere. this commit fixes that by adding the attribute used it.
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
|
||||
static unsigned int global_counter = 1;
|
||||
|
||||
static volatile unsigned int global_var = 123;
|
||||
static volatile unsigned int __attribute__((used)) global_var = 123;
|
||||
|
||||
static void
|
||||
maybe_stop_here ()
|
||||
|
Reference in New Issue
Block a user