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] Add target hook in C front end


On Mon, Dec 17, 2001 at 04:56:24PM -0800, Richard Henderson wrote:
> On Mon, Dec 17, 2001 at 04:30:31PM -0800, Zack Weinberg wrote:
> > Here's an alternate idea.  What if we add an option-processing hook to
> > libcpp?  It would be as simple as "all -m switches are handed to this
> > callback routine."
> 
> No.  To avoid complicating the backend, cpp0 would have to 
> process the -m options just like toplev.c does, which means
> including mips.o, at which point things go to hell.

I don't follow.  Yes, it does have to duplicate a certain amount of
the logic in mips.c/mips.h.  However, I imagine it could ignore most
of the complexity.

Folding cpp0 into cc1 is just not going to happen at this stage, the
specs are unmaintainable, and Eric's original proposal breaks code
that depends on __SIZE_TYPE__ being a macro.  Do we have another
alternative?

zw



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