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] compiling gcc with a C++ compiler 2/n


> Change the whole langhook instead of adding a cast, yes that means
> moving around where enum expand_modifier is declared but who cares, it
> is just one enum and that should fix all front-ends at the same time.
do you have a suggestions about where to move it? I am currently
building a patch to change the langhook, and for now I have to include
expr.h in langhooks.h to get enum expand_modifier.

This seems messy to me, in particular since langhooks.h did not include
anything before. But moving the definition to langhooks.h requires
including langhooks.h from expr.h, which does not seem better. I could
not find a suitable header file for both, and I hesitate to add a new
file. But perhaps you have a suggestion.

Thomas


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