Improve PR64242 testcase
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 17 Jun 2019 11:25:12 +0000 (11:25 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Mon, 17 Jun 2019 11:25:12 +0000 (11:25 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr64242.c

index 55693dc8ac265b217fb6cfbcb508ea4be93a8d53..aba3d20d8a7b77e7d1f661235a6b81ff45fca6c2 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * gcc.target/msp430/mspabi_sllll.c: New test.
index e6139ede3f34d587ac53d04e286e5d75fd2ca76c..5151f6eef839c0a98c76aeba93fdb800129523a3 100644 (file)
@@ -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);
 }