comparison ChangeLog @ 10471:f318366f3bc7

c-stack: avoid compiler optimizations when provoking overflow * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make recursion harder to optimize, to ensure a stack overflow occurs. * tests/test-c-stack.c (recurse): Likewise. Borrowed from libsigsegv. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Tue, 23 Sep 2008 08:56:10 -0600
parents 9867f4fee019
children a4dc39a18d54
comparison
equal deleted inserted replaced
10470:9867f4fee019 10471:f318366f3bc7
1 2008-09-23 Eric Blake <ebb9@byu.net> 1 2008-09-23 Eric Blake <ebb9@byu.net>
2
3 c-stack: avoid compiler optimizations when provoking overflow
4 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
5 recursion harder to optimize, to ensure a stack overflow occurs.
6 * tests/test-c-stack.c (recurse): Likewise.
7 Borrowed from libsigsegv.
2 8
3 c-stack: work around Irix sigaltstack bug 9 c-stack: work around Irix sigaltstack bug
4 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check 10 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
5 whether sigaltstack uses wrong end of stack_t (copied in part from 11 whether sigaltstack uses wrong end of stack_t (copied in part from
6 libsigsegv). 12 libsigsegv).