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()


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.


r~


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