3.0: Troubling warning in dwarf2out.c

Mark Mitchell mark@codesourcery.com
Fri May 18 19:07:00 GMT 2001


>>>>> "Jason" == Jason Merrill <jason_merrill@redhat.com> writes:

    Jason> Wouldn't it make sense for the definition of
    Jason> ASM_OUTPUT_INTERNAL_LABEL to simply cast "num" to the
    Jason> appropriate type if it wants to use fprintf?

It would be better if we would treat these macros like functions, and
specify their types.  

In fact, most of them should just *be* functions, in my opinion.  They
could always be inline, with a little magic to support compilers that
don't allow that, if they're really so performance critical.
(Anything that calls `fprintf' certainly isn't, though.)

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com



More information about the Gcc-patches mailing list