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]

Re: [PATCH][C++] Fix dump-file corruption


Mark Mitchell <mark@codesourcery.com> writes:
> You don't have to do string copies in your example; just back the printf
> call into multiple calls.  That's not i18n-friendly, but this is
> debugging output.

Maybe another alternative would be to use ASTRDUP().

Richard


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