Commit 2738b4c7 by Jakub Jelinek Committed by Jakub Jelinek

re PR other/58712 (issues found by --enable-checking=valgrind)

	PR other/58712
	* builtins.c (determine_block_size): Initialize *probable_max_size
	even if len_rtx is CONST_INT.

From-SVN: r206621
parent 241f845a
2014-01-15 Jakub Jelinek <jakub@redhat.com>
PR other/58712
* builtins.c (determine_block_size): Initialize *probable_max_size
even if len_rtx is CONST_INT.
2014-01-14 Andrew Pinski <apinski@cavium.com>
* config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
......
......@@ -3117,7 +3117,7 @@ determine_block_size (tree len, rtx len_rtx,
{
if (CONST_INT_P (len_rtx))
{
*min_size = *max_size = UINTVAL (len_rtx);
*min_size = *max_size = *probable_max_size = UINTVAL (len_rtx);
return;
}
else
......@@ -3131,7 +3131,8 @@ determine_block_size (tree len, rtx len_rtx,
else
*min_size = 0;
if (tree_fits_uhwi_p (TYPE_MAX_VALUE (TREE_TYPE (len))))
*probable_max_size = *max_size = tree_to_uhwi (TYPE_MAX_VALUE (TREE_TYPE (len)));
*probable_max_size = *max_size
= tree_to_uhwi (TYPE_MAX_VALUE (TREE_TYPE (len)));
else
*probable_max_size = *max_size = GET_MODE_MASK (GET_MODE (len_rtx));
......
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