Commit 92d05580 by Jakub Jelinek Committed by Jakub Jelinek

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
parent be3afd67
2014-02-04 Jakub Jelinek <jakub@redhat.com> 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 PR rtl-optimization/57915
* recog.c (simplify_while_replacing): If all unary/binary/relational * recog.c (simplify_while_replacing): If all unary/binary/relational
operation arguments are constant, attempt to simplify those. operation arguments are constant, attempt to simplify those.
......
...@@ -10660,7 +10660,8 @@ simd_clone_struct_copy (struct cgraph_simd_clone *to, ...@@ -10660,7 +10660,8 @@ simd_clone_struct_copy (struct cgraph_simd_clone *to,
struct cgraph_simd_clone *from) struct cgraph_simd_clone *from)
{ {
memcpy (to, from, (sizeof (struct cgraph_simd_clone) 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 /* Return vector of parameter types of function FNDECL. This uses
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment