This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: __GXX_WEAK__ broken
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: __GXX_WEAK__ broken
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sat, 7 Jul 2001 18:54:34 +0100
- Cc: "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>
Mark Mitchell wrote:-
> My instinct would be to say that CPP needs to link against the target
> object now.
I'd like to avoid that if possible, in order to keep cpplib
standalone.
> Or, that you could divide that object into a generic
> part (usable in cpplib, the driver, etc.) and a specific part for
> the compiler. In fact, that is probably the natural inheritance
> relationship we were looking for earlier.
>
> struct target {
> /* Stuff that does not involve `tree' or `rtl'.
> };
>
> struct compiler_target {
> struct target base;
> /* Stuff that does involve trees. */
> };
>
> Then, if there were stuff that only mattered in cpplib, you could make
> a `preprocessor_target' as well.
Hmm. I don't really fancy breaking up our target struct either if we
can avoid it. I don't fancy working on this, it's a lot of work and
I've got my head wrapped around other things at the moment (and it's
not my bug... :-P). I thought it would be a quick fix, but sadly not.
A good solution probably needs quite some thought.
Neil.