[ was: Re: [PATCH][committed] Always initialize hash table elements ]
On 09/01/2017 05:39 PM, Jeff Law wrote:
* gcc.c-torture/compile/pr82052.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr82052.c
b/gcc/testsuite/gcc.c-torture/compile/pr82052.c
+short fn2() {}
+ x = fn5(f && fn2(t46 = g = t52,
+ fn6(fn7(fn8(f, fn9(fn10(t51, f, t53, t53)))) < t21, t53)));
Hi,
this patch fixes a call arguments mismatch in
gcc.c-torture/compile/pr82052.c when compiling for nvptx.
I've verified that the test-case is still failing when the patch for
PR82052 is reverted.
Committed.
Thanks,
- Tom
Fix call arguments mismatch in gcc.c-torture/compile/pr82052.c
2017-09-04 Tom de Vries <t...@codesourcery.com>
PR tree-optimization/82052
* gcc.c-torture/compile/pr82052.c (fn2): Add parameters corresponding to
call in fn11.
---
gcc/testsuite/ChangeLog | 6 ++++++
gcc/testsuite/gcc.c-torture/compile/pr82052.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr82052.c b/gcc/testsuite/gcc.c-torture/compile/pr82052.c
index 4441985..3763161 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr82052.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr82052.c
@@ -20,7 +20,7 @@ uint16_t t35[][7][2];
static uint8_t t41;
char z[][8][3];
char fn1(char p1, int p2) { return p1 < 0 ?: p1 >> p2; }
-short fn2() {}
+short fn2(int a, uint16_t b) {}
void fn3(uint8_t p1) { d = d >> 8 ^ c[(d ^ p1) & 5]; }
void fn4(uint32_t p1, int p2) {
int e;