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]

Re: Pragma handling: non-C front ends should not require c_lex()


Richard Henderson wrote:-

> On Mon, Oct 15, 2001 at 11:22:58PM +0100, Neil Booth wrote:
> > With this patch, token reading is done through a
> > language hook, which by default calls abort(), but is overridden to
> > point to c_lex() by the C front ends.  This solves the link issue.
> 
> This is incorrect.  The proper solution involves the c_target_objs
> and cxx_target_objs configuration macros, by which particular target
> objects can be linked in to only the C and C++ front ends.
> 
> See v850 for an example.

Ah, right you are, I'd not noticed that.  So, it appears that darwin,
i960 and v850 are done.

That leaves c4x and i370.  Would you accept a patch to have those
targets use c{,xx}_target_objs with their pragma routines bropken out
into a separate file?

Neil.


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