From fecd7a1ab444a38ebda5c1d495ee48f02f290a25 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 27 Jun 2019 09:08:02 +0000 Subject: [PATCH] re PR testsuite/91004 (Excess errors in g++.dg/torture/pr34850.C starting with r272688) 2019-06-27 Richard Biener PR testsuite/91004 * g++.dg/torture/pr34850.C: Fix overly reduced testcase. From-SVN: r272737 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/torture/pr34850.C | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 90dcc34..f7b774a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-06-27 Richard Biener + + PR testsuite/91004 + * g++.dg/torture/pr34850.C: Fix overly reduced testcase. + 2019-06-27 Kewen Lin PR target/62147 diff --git a/gcc/testsuite/g++.dg/torture/pr34850.C b/gcc/testsuite/g++.dg/torture/pr34850.C index e41620b..60a6c6a 100644 --- a/gcc/testsuite/g++.dg/torture/pr34850.C +++ b/gcc/testsuite/g++.dg/torture/pr34850.C @@ -13,7 +13,8 @@ extern "C" { extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__, __artificial__)) void * memset (void *__dest, int __ch, size_t __len) throw () { if (__builtin_constant_p (__len) && __len == 0) - __warn_memset_zero_len (); + __warn_memset_zero_len (); + return __dest; } } inline void clear_mem(void* ptr, u32bit n) { -- 2.7.4