2008/8/25 Paolo Bonzini <[EMAIL PROTECTED]>:
>
> As far as I could see, all the dependency stuff is in mkdeps.c; maybe it
> could use the line-map infrastructure more.  Of course, in that case
> moving line-map.c out of libcpp would mean moving mkdeps.c too -- and
> not in gcc/, but rather in its own library so that makedepend can use
> it... at which point you wonder if it was really a good idea...

Well, my opinion is that line-map.c should be in its own
library/object file independent of libcpp but libcpp (and makedepend
and cc1 and gnat) should still be able to use it, preferably directly
and not through pointers. Not sure how to do this but I think it is
what we do with libiberty, don't we? Perhaps there is an even easier
way.

The same should happen with diagnostic.[ch].

Cheers,

Manuel.

Reply via email to