[PATCH] unwind: add simple test case for testing -k

Dmitry V. Levin ldv at altlinux.org
Wed May 14 20:43:19 UTC 2014


On Wed, May 14, 2014 at 01:16:29PM +0900, Masatake YAMATO wrote:
[...]
> diff --git a/tests/stack-fcall.c b/tests/stack-fcall.c
> new file mode 100644
> index 0000000..3e6ffd4
> --- /dev/null
> +++ b/tests/stack-fcall.c
> @@ -0,0 +1,27 @@
> +#include <unistd.h>
> +#include <sys/types.h>
> +
> +/* volatile is used to protect 'call' is converted to 'jump'
> +   by gcc.
> +   
> +   I cannot find the way not to apply -O0 to this program 
> +   in info doc of automake. */

stack_fcall_CFLAGS = $(AM_CFLAGS) -O0


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140515/3b013945/attachment.bin>


More information about the Strace-devel mailing list