2014-04-08 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Apr 2014 12:57:07 +0000 (12:57 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Apr 2014 12:57:07 +0000 (12:57 +0000)
PR middle-end/60706
* tree-pretty-print.c (pp_double_int): For HWI32 hosts with
a 64bit widest int print double-int similar to on HWI64 hosts.

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

gcc/ChangeLog
gcc/tree-pretty-print.c

index 0e0267a..f17809b 100644 (file)
@@ -1,5 +1,11 @@
 2014-04-08  Richard Biener  <rguenther@suse.de>
 
+       PR middle-end/60706
+       * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
+       a 64bit widest int print double-int similar to on HWI64 hosts.
+
+2014-04-08  Richard Biener  <rguenther@suse.de>
+
        PR tree-optimization/60785
        * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
        default defs properly.
index 77446c5..83d5ca6 100644 (file)
@@ -3465,6 +3465,12 @@ pp_double_int (pretty_printer *pp, double_int d, bool uns)
     pp_wide_integer (pp, d.low);
   else if (d.fits_uhwi ())
     pp_unsigned_wide_integer (pp, d.low);
+  else if (HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT)
+    pp_scalar (pp,
+              uns
+              ? HOST_WIDEST_INT_PRINT_UNSIGNED : HOST_WIDEST_INT_PRINT_DEC,
+              (HOST_WIDEST_INT) ((((unsigned HOST_WIDEST_INT) d.high << 1)
+                                  << (HOST_BITS_PER_WIDE_INT - 1)) | d.low));
   else
     {
       unsigned HOST_WIDE_INT low = d.low;