From 92d05580aad3bb3efa2e15b56e00da2e3e57f14c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 4 Feb 2014 13:19:32 +0100 Subject: re PR other/58712 (issues found by --enable-checking=valgrind) PR other/58712 * omp-low.c (simd_clone_struct_copy): If from->inbranch is set, copy one less argument. From-SVN: r207461 --- gcc/omp-low.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/omp-low.c') diff --git a/gcc/omp-low.c b/gcc/omp-low.c index d7589aa..900c1ba 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -10660,7 +10660,8 @@ simd_clone_struct_copy (struct cgraph_simd_clone *to, struct cgraph_simd_clone *from) { memcpy (to, from, (sizeof (struct cgraph_simd_clone) - + from->nargs * sizeof (struct cgraph_simd_clone_arg))); + + ((from->nargs - from->inbranch) + * sizeof (struct cgraph_simd_clone_arg)))); } /* Return vector of parameter types of function FNDECL. This uses -- cgit v1.1