mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-07-02 05:41:43 +02:00
![Yichao Yu](/assets/img/avatar_default.png)
* Add `SA_SIGINFO` flag This is needed to guarantee the availability of the `ucontext` argument * Mark the `NULL` pointer load as `volatile` Further prevent any compiler optimization on the load.
7 lines
108 B
C
7 lines
108 B
C
#include <stdio.h>
|
|
|
|
/* To prevent inlining and optimizing away */
|
|
int foo(volatile int* f) {
|
|
return *f;
|
|
}
|