From: Richard Biener Date: Thu, 3 Sep 2015 12:45:33 +0000 (+0000) Subject: varasm.c (output_constant): Use fold_convert instead of wide_int_to_tree. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4413ddbcb262f848946b4d71bbaafe2ee02417e0;p=gcc.git varasm.c (output_constant): Use fold_convert instead of wide_int_to_tree. 2015-09-03 Richard Biener * varasm.c (output_constant): Use fold_convert instead of wide_int_to_tree. From-SVN: r227443 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 33fc52371d5..a155a4a6eb8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-03 Richard Biener + + * varasm.c (output_constant): Use fold_convert instead of + wide_int_to_tree. + 2015-09-03 Tom de Vries PR tree-optimization/65637 diff --git a/gcc/varasm.c b/gcc/varasm.c index d9290a17cbb..706e6527cfd 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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); }