aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-02-04 13:19:32 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2014-02-04 13:19:32 +0100
commit92d05580aad3bb3efa2e15b56e00da2e3e57f14c (patch)
tree883977ecbb64f0daacca1ba292005c70f504ccbc /gcc
parentbe3afd67464ec5430d72971991e9cbbaa7cd4370 (diff)
downloadgcc-92d05580aad3bb3efa2e15b56e00da2e3e57f14c.zip
gcc-92d05580aad3bb3efa2e15b56e00da2e3e57f14c.tar.gz
gcc-92d05580aad3bb3efa2e15b56e00da2e3e57f14c.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/omp-low.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 41fc977..681ab7b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2014-02-04 Jakub Jelinek <jakub@redhat.com>
+ PR other/58712
+ * omp-low.c (simd_clone_struct_copy): If from->inbranch
+ is set, copy one less argument.
+
PR rtl-optimization/57915
* recog.c (simplify_while_replacing): If all unary/binary/relational
operation arguments are constant, attempt to simplify those.
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