varasm.c (output_constant): Use fold_convert instead of wide_int_to_tree.
authorRichard Biener <rguenther@suse.de>
Thu, 3 Sep 2015 12:45:33 +0000 (12:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 3 Sep 2015 12:45:33 +0000 (12:45 +0000)
2015-09-03  Richard Biener  <rguenther@suse.de>

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

From-SVN: r227443

gcc/ChangeLog
gcc/varasm.c

index 33fc52371d5f26c4ef328a59760ae2af6f9954b1..a155a4a6eb8e5437c11741f62845c5f3f57248df 100644 (file)
@@ -1,3 +1,8 @@
+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
index d9290a17cbbc244c31859b795ffc00ac2d4e389d..706e6527cfd86986148ff82b8a68674bd8e66a05 100644 (file)
@@ -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);
 
     }