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] GCC symdb (libcpp/) 1 of 2


>>>>> ">" == Yunfeng ZHANG <zyf.zeroos@gmail.com> writes:

>> 	* include/cpplib.h (struct cpp_callbacks): Add new callbacks.
>> 	macro_start_expand, macro_end_arg, macro_intern_expand,
>> 	macro_end_expand
>> 	comment
>> 	start_directive, end_directive
>> 	directive_token

The formatting of this part of the ChangeLog is odd.

I don't have a problem with adding hooks, in general.
I think it would be nice if we had some kind of "unlikely" macro, so we
could micro-optimize the tests.  I don't know whether this really
matters or not; it would be nice to know whether this patch affects
libcpp performance.

>> 	(struct cpp_token): Add file_offset field.

This part of the patch is not ok.

First, cpp_token is space-sensitive.  So, growing it requires
justification.

The new field has no comment.  I don't know what it means.

Tom


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