Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
+2013-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix test FAIL with -O2.
+ * backtrace-child.c (sigusr2): Add NOINLINE_NOCLONE and final asm stub.
+
2013-12-05 Mark Wielaard <mjw@redhat.com>
* backtrace-data.c (main): If unsupported also print to stderr.
/* Execution will arrive here from jmp by an artificial ptrace-spawn signal. */
-static void
+static NOINLINE_NOCLONE void
sigusr2 (int signo)
{
assert (signo == SIGUSR2);
}
/* Here we dump the core for --gencore. */
raise (SIGABRT);
+ /* Avoid tail call optimization for the raise call. */
+ asm volatile ("");
}
static NOINLINE_NOCLONE void