This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: __GXX_WEAK__ broken
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: __GXX_WEAK__ broken
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 07 Jul 2001 10:09:28 -0700
- cc: "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>
--On Thursday, July 05, 2001 07:52:28 AM +0100 Neil Booth
<neil@daikokuya.demon.co.uk> wrote:
> Mark,
>
> In cppinit.c we have
>
> if (SUPPORTS_ONE_ONLY)
> _cpp_define_builtin (pfile, "__GXX_WEAK__ 1");
> else
> _cpp_define_builtin (pfile, "__GXX_WEAK__ 0");
>
> Any good ideas?
I'm catching up after a couple of days of email; sorry.
My instinct would be to say that CPP needs to link against the target
object now. 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.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com