Commit 6b3b8c27 by Kenneth Zadeck Committed by Richard Sandiford

c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.

gcc/c-family/
2013-11-19  Kenneth Zadeck  <zadeck@naturalbridge.com>

	* c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.

From-SVN: r205100
parent 2561451d
2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
* c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
PR c/53001
......
......@@ -9227,10 +9227,8 @@ check_function_arguments_recurse (void (*callback)
to be valid. */
format_num_expr = TREE_VALUE (TREE_VALUE (attrs));
gcc_assert (TREE_CODE (format_num_expr) == INTEGER_CST
&& !TREE_INT_CST_HIGH (format_num_expr));
format_num = TREE_INT_CST_LOW (format_num_expr);
format_num = tree_to_uhwi (format_num_expr);
for (inner_arg = first_call_expr_arg (param, &iter), i = 1;
inner_arg != 0;
......
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