This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Pragma handling: non-C front ends should not require c_lex()
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: Pragma handling: non-C front ends should not require c_lex()
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 16 Oct 2001 13:56:03 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20011015232258.A21596@daikokuya.demon.co.uk>
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~