]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2015-09-03 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Sep 2015 12:45:33 +0000 (12:45 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Sep 2015 12:45:33 +0000 (12:45 +0000)
* varasm.c (output_constant): Use fold_convert instead of
wide_int_to_tree.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227443 138bc75d-0d04-0410-961f-82ee72b054a4

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);
 
     }