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]

[PATCH] Casts to avoid printf format warnings during bootstrap.


Hi,

    Can someone review this? This patch eliminates all printf related
warning during bootstrap.  I did a full-bootstrap on
i686-unknown-linux-gnu and ran gcc, g++, gfortran and objc tests.  The
patch does not introduce any new regressions in the testsuites.

-Doug

2008-04-10  Doug Kwan  <dougkwan@google.com>

        * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
        for hex printing.
        * tree-pretty-print.c (dump_generic_node): Ditto.
        * final.c (output_addr_const): Ditto.
        * dwarf2out.c (output_cfi): Ditto.
        * c-pretty-print.c (pp_c_integer_constant): Ditto.
        * print-rtl.c (print_rtx): Ditto.
        * print-tree.c (print_node_brief, print_node): Ditto.
        * c-common.c (match_case_to_enum_1): Ditto.
        * sched-vis.c (print_value): Ditto.
        * config/i386/i386.c (print_operand): Cast to long unsigned int
        for hex printing.

Attachment: patch.txt
Description: Text document


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