re PR other/58712 (issues found by --enable-checking=valgrind)
authorJakub Jelinek <jakub@redhat.com>
Tue, 4 Feb 2014 12:31:30 +0000 (13:31 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 4 Feb 2014 12:31:30 +0000 (13:31 +0100)
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

gcc/ChangeLog
gcc/omp-low.c

index 681ab7b6692bcd042621326c8da393d5ab6b0a8d..1105fa9de8afb3ba680d998b643f54b498e7b44f 100644 (file)
@@ -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
index 900c1ba221ccfef8476fd922e610e1bf67c07db4..3750ceb5e8d85323c2838ccc29cef780d53996a7 100644 (file)
@@ -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