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: [RFC] Adjust output for strings in tree-pretty-print.c



Notice the added final '\0' in the C case; I don't know if it's bad to
have it there, but I don't see a way to not output it and still have
the correct output for Fortran (whose strings are not NUL-terminated).

I think the best thing to do is to have a langhook then. I'm actually not sure that you want all those \0's in the Fortran front-end since the kind can be recovered from the {lb:1 sz:4} that is appended to the string. Endianness issues may also appear. Maybe you should call iconv in the langhook to get back to UTF-8, and print that representation instead.


Paolo


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