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: Fix notice_global_symbol


> On Sat, Oct 11, 2003 at 12:32:18PM +0200, Jan Hubicka wrote:
> > notice_global_symbol tests whether someone else can define same symbol
> > same way and not get linker error, while binds_local_p tests whether
> > someone else can overwrite the given symbol.
> 
> Ah.  I guess there's not a good match then.

Still there is problem on whether we want to allow global symbol
overwriting in C++.  WHen allowed, we theoretically can get match on
GLOBAL_* that is definitly not wanted, so perhaps we should look only
for symbols currently passing notice_global_symbol tests byt still being
binds_local_p, that is very small set of symbols for PIC...

Nice would be to relax binds_local_p :) as C++ mandates quite strong
assumptions about symbol sharing.

Honza
> 
> 
> r~


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