This is the mail archive of the gcc@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: Redeclaration of used symbols


> > If so, what should be semantic in function-at-a-time compilation?
> > If not, what is the best way to error about it? (check in
> > duplicate_decls whether entity has an initializer or is used comes
> > into mind)
> 
> You could simply remove the special case code in duplicate_decls that
> lets this go through.  I am in favor of making it a hard error even in
> non-unit-at-a-time mode -- I don't think the validity of code should
> depend on whether or not the translation unit is being analyzed in
> toto.

Hard error sounds like most plausible sollution to me as well, however
duplicate_decls is a black magic for me, what code you do have in mind?
In general it would be nice if we can avoid changing the declarations
of functions and variables once they have been defined...

Honza
> 
> zw


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