pthread related breakage (mainline)

Jason Merrill jason@redhat.com
Tue Dec 9 05:07:00 GMT 2003


On Tue, 9 Dec 2003 02:48:25 +0100, "Giovanni Bajo" <giovannibajo@libero.it> wrote:

>> The problem is that the #pragma weaks for the pthread functions are now
>> being ignored, because handle_pragma_weak expects an affected function
>> to be the identifier_global_value of its name, and now it isn't.
>
> ... which, if I understand correctly, means that #pragma weaks are already
> broken in the first place for really overloaded functions, right?

True.  Which leads to the question of what we want #pragma weak to mean for
really overloaded functions.  I suppose the alternatives are either to make
all currently declared overloads weak or give an error.  I lean towards the
latter.  Which suggests that handle_pragma_weak could just give an error if
the lookup finds something that is not a decl.

> Would you please give me a hint on where to put my hands to fix this? It
> seems everything is handled in C frontend.

Let's go back to your original patch,

  http://gcc.gnu.org/ml/gcc-patches/2003-10/msg02572.html

Jason



More information about the Libstdc++ mailing list