This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Committed] Fix tree-pretty-print.c after recent changes


After:
+2006-11-01  Adam Nemet  <anemet@caviumnetworks.com>
+
+                * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: 
Use
+                HOST_WIDE_INT_PRINT to print high and low parts.  Use
+                HOST_BITS_PER_WIDE_INT for the width of HOST_WIDE_INT. 
When
+                printing a hexadecimal number prefix it with 0x.
+


On both Powerpc-linux-gnu and powerpc-darwin, we were getting regressions 
due to two things, first
the format which is used for sprintf was bogus and then the buffer which 
is used was not large enough.
Both of these issues are easy to solve and in fact we no longer need the 
extra buffer as there is a macro
in hwint.h for the format of printing out hex double host wide ints, 
HOST_WIDE_INT_PRINT_DOUBLE_HEX.

I changed dump_generic_node to use HOST_WIDE_INT_PRINT_DOUBLE_HEX instead 
of the buffer.
Committed as preapproved by Ian Taylor after a bootstrap and test on 
i686-linux-gnu.

Thanks,
Andrew Pinski

ChangeLog:


        * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use 
        HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer.


Attachment: fixtpp.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]