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


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().  I see
little point in having these kinds of macros in the library; it only
makes it harder for cpplib to be stand-alone.

If you agree, Mark, I can do the patch.

Neil.


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