Commit c79be1dc by Jakub Jelinek Committed by Jakub Jelinek

re PR middle-end/51510 (gcc for arm-linux-gnueabi ICEs on…

re PR middle-end/51510 (gcc for arm-linux-gnueabi ICEs on gcc.c-torture/execute/20050713-1.c due to PR50074+PR51323 fix)

	PR middle-end/51510
	* calls.c (internal_arg_pointer_based_exp_scan): Don't use
	VEC_safe_grow_cleared if idx is smaller than VEC_length.

From-SVN: r182246
parent 431e1124
2011-12-12 Jakub Jelinek <jakub@redhat.com>
PR middle-end/51510
* calls.c (internal_arg_pointer_based_exp_scan): Don't use
VEC_safe_grow_cleared if idx is smaller than VEC_length.
2011-12-12 Richard Sandiford <richard.sandiford@linaro.org> 2011-12-12 Richard Sandiford <richard.sandiford@linaro.org>
PR middle-end/50873 PR middle-end/50873
...@@ -1705,9 +1705,11 @@ internal_arg_pointer_based_exp_scan (void) ...@@ -1705,9 +1705,11 @@ internal_arg_pointer_based_exp_scan (void)
val = internal_arg_pointer_based_exp (SET_SRC (set), false); val = internal_arg_pointer_based_exp (SET_SRC (set), false);
if (val != NULL_RTX) if (val != NULL_RTX)
{ {
VEC_safe_grow_cleared (rtx, heap, if (idx
internal_arg_pointer_exp_state.cache, >= VEC_length (rtx, internal_arg_pointer_exp_state.cache))
idx + 1); VEC_safe_grow_cleared (rtx, heap,
internal_arg_pointer_exp_state.cache,
idx + 1);
VEC_replace (rtx, internal_arg_pointer_exp_state.cache, VEC_replace (rtx, internal_arg_pointer_exp_state.cache,
idx, val); idx, val);
} }
......
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