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: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 05 Jul 2001 17:46:06 +0200
- Cc: Mark Mitchell <mark at codesourcery dot com>, gcc-bugs at gcc dot gnu dot org
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <20010705160531.A20057@daikokuya.demon.co.uk>
Neil Booth <neil@daikokuya.demon.co.uk> writes:
| Neil Booth wrote:-
|
| > In cppinit.c we have
| >
| > if (SUPPORTS_ONE_ONLY)
| > _cpp_define_builtin (pfile, "__GXX_WEAK__ 1");
| > else
| > _cpp_define_builtin (pfile, "__GXX_WEAK__ 0");
| >
| > This code assumes SUPPORTS_ONE_ONLY is a boolean macro, or at least
| > evaluatable by CPP. Unfortunately that is not true for m88k, as I've
| > just found out working on target stuff. It expands to an operation on
| > target_flags, which is something cpplib doesn't link to as it is in
| > toplev.o.
| >
| > Any good ideas?
|
| I suggest we move this to the front end: cxx_post_options().
That sounds good to me.
-- Gaby