This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Ada, treelang needs to be converted to --enable-mapped-location
- From: Zack Weinberg <zack at codesourcery dot com>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: per at bothner dot com, gcc at gcc dot gnu dot org
- Date: Wed, 06 Oct 2004 06:48:13 -0700
- Subject: Re: Ada, treelang needs to be converted to --enable-mapped-location
- References: <10410061250.AA02989@vlsi1.ultra.nyu.edu>
kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:
> Yes, but that doesn't preclude using the line_map structure, even with
> non- GCC back-ends. There is no reason why the Ada front-end can't use
> line_map for a program that say just does analysis and never touches a
> tree or an rtx.
>
> Yes, there is because the Ada front end is also used with back-ends other
> than GCC.
line-map.[ch] should not be considered part of GCC in this context.
The proper analogy is to code in libiberty, which is shared among many
projects. There is no reason the Ada front end cannot make use of it
when linked to some other back-end (modulo source packaging issues).
zw