mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-29 02:07:39 +01:00
26c99a3a3e
* 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.
6 lines
108 B
C
6 lines
108 B
C
#include <stdio.h>
|
|
|
|
/* To prevent inlining and optimizing away */
|
|
int foo(volatile int* f) {
|
|
return *f;
|
|
}
|