diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-02-04 13:31:30 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-02-04 13:31:30 +0100 |
commit | 30540e7958f841359d14b2c46e4c51f07a22ff5e (patch) | |
tree | 02cfe7ffb6e1126944baaf55c801f1038940e6ac /gcc | |
parent | 92d05580aad3bb3efa2e15b56e00da2e3e57f14c (diff) | |
download | gcc-30540e7958f841359d14b2c46e4c51f07a22ff5e.zip gcc-30540e7958f841359d14b2c46e4c51f07a22ff5e.tar.gz gcc-30540e7958f841359d14b2c46e4c51f07a22ff5e.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.
(expand_simd_clones): Don't subtract clone_info->inbranch
from simd_clone_struct_alloc argument.
From-SVN: r207462
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/omp-low.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 681ab7b..1105fa9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -3,6 +3,8 @@ PR other/58712 * omp-low.c (simd_clone_struct_copy): If from->inbranch is set, copy one less argument. + (expand_simd_clones): Don't subtract clone_info->inbranch + from simd_clone_struct_alloc argument. PR rtl-optimization/57915 * recog.c (simplify_while_replacing): If all unary/binary/relational diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 900c1ba..3750ceb 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -11694,7 +11694,6 @@ expand_simd_clones (struct cgraph_node *node) if (i != 0) { clone = simd_clone_struct_alloc (clone_info->nargs - - clone_info->inbranch + ((i & 1) != 0)); simd_clone_struct_copy (clone, clone_info); /* Undo changes targetm.simd_clone.compute_vecsize_and_simdlen |