Jakub Jelinek wrote: > For replacability the current definition is just fine. Weak functions > must be assumed to be always replaceable and non-weak functions which are > known to bind within the same executable resp. shared library are not > replaceable - linker will issue error if two non-weak symbols with the > same name are linked into the same executable resp. shared library and > when linking a non-weak symbol and weak symbol the non-weak one will > win.
Good point -- if there's no definition in the current translation unit, then I guess we aren't going to make any bad assumptions about the contents of the function. So, I guess that just means that the Power back end needs to check for !DECL_EXTERNAL in addition to binds_local_p? -- Mark Mitchell CodeSourcery [EMAIL PROTECTED] (650) 331-3385 x713