Commit 4413ddbc by Richard Biener Committed by Richard Biener

varasm.c (output_constant): Use fold_convert instead of wide_int_to_tree.

2015-09-03  Richard Biener  <rguenther@suse.de>

	* varasm.c (output_constant): Use fold_convert instead of
	wide_int_to_tree.

From-SVN: r227443
parent 06441dd5
2015-09-03 Richard Biener <rguenther@suse.de>
* varasm.c (output_constant): Use fold_convert instead of
wide_int_to_tree.
2015-09-03 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/65637
......
......@@ -4699,7 +4699,7 @@ output_constant (tree exp, unsigned HOST_WIDE_INT size, unsigned int align)
exp = build1 (ADDR_EXPR, saved_type, TREE_OPERAND (exp, 0));
/* Likewise for constant ints. */
else if (TREE_CODE (exp) == INTEGER_CST)
exp = wide_int_to_tree (saved_type, exp);
exp = fold_convert (saved_type, exp);
}
......
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