[Bug libfortran/60706] FAIL: gfortran.dg/size_kind_2.f90 -O scan-tree-dump original "var2 = 42949673 00;"
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 31 08:53:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60706
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Like this. If that works for you it's pre-approved. Only implements the
special-case (the gmp path would probably have a lot of testsuite fallout?).
I don't have a suitable target to test this on where the path isn't optimized
away.
Index: gcc/tree-pretty-print.c
===================================================================
--- gcc/tree-pretty-print.c (revision 208954)
+++ gcc/tree-pretty-print.c (working copy)
@@ -3465,6 +3467,12 @@ pp_double_int (pretty_printer *pp, doubl
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 << HOST_BITS_PER_WIDE_INT)
+ | d.low));
else
{
unsigned HOST_WIDE_INT low = d.low;
More information about the Gcc-bugs
mailing list