Commit 2fcae109 by Wilco Dijkstra Committed by Wilco Dijkstra

Improve PR64242 testcase

Clear the input array to avoid the testcase accidentally
passing with an incorrect frame pointer.

Committed as obvious.

testsuite/
	PR middle-end/64242
	* gcc.c-torture/execute/pr64242.c: Improve test.

From-SVN: r272382
parent b0c849fa
2019-06-17 Wilco Dijkstra <wdijkstr@arm.com>
PR middle-end/64242
* gcc.c-torture/execute/pr64242.c: Improve test.
2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com> 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* gcc.target/msp430/mspabi_sllll.c: New test. * gcc.target/msp430/mspabi_sllll.c: New test.
......
...@@ -7,6 +7,7 @@ broken_longjmp (void *p) ...@@ -7,6 +7,7 @@ broken_longjmp (void *p)
{ {
void *buf[32]; void *buf[32];
__builtin_memcpy (buf, p, 5 * sizeof (void*)); __builtin_memcpy (buf, p, 5 * sizeof (void*));
__builtin_memset (p, 0, 5 * sizeof (void*));
/* Corrupts stack pointer... */ /* Corrupts stack pointer... */
__builtin_longjmp (buf, 1); __builtin_longjmp (buf, 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment