This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: followups to your visibility work


Mark Mitchell <mark@codesourcery.com> writes:

> Niall Douglas wrote:
> 
> > One point - you probably still want the check & ignore of non
> > default visibility on global operator new and delete. If code
> > defines this with non-default visibility you get a segfault in GNU
> > ld at link time. And it's very easy to do this accidentally if you
> > use
> >- -fvisibility=hidden.
> >
> Because those are library functions, it should be impossible to do as
> you say; they are created with DECL_VISIBILITY set to
> VISIBILITY_DEFAULT and with DECL_VISIBILITY_SPECIFIED set.

The user is permitted to replace those functions.

(But, GNU ld shouldn't crash, I would suggest fixing that bug instead.)


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