From: Wilco Dijkstra Date: Mon, 17 Jun 2019 11:25:12 +0000 (+0000) Subject: Improve PR64242 testcase X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fcae10971238306fb88fb1be06a6a004bec064b;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 55693dc8ac2..aba3d20d8a7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-06-17 Wilco Dijkstra + + PR middle-end/64242 + * gcc.c-torture/execute/pr64242.c: Improve test. + 2019-06-16 Jozef Lawrynowicz * gcc.target/msp430/mspabi_sllll.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/pr64242.c b/gcc/testsuite/gcc.c-torture/execute/pr64242.c index e6139ede3f3..5151f6eef83 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr64242.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr64242.c @@ -7,6 +7,7 @@ broken_longjmp (void *p) { void *buf[32]; __builtin_memcpy (buf, p, 5 * sizeof (void*)); + __builtin_memset (p, 0, 5 * sizeof (void*)); /* Corrupts stack pointer... */ __builtin_longjmp (buf, 1); }