This is the mail archive of the gcc-bugs@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: __GXX_WEAK__ broken


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.


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