This is the mail archive of the gcc-bugs@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]

[Bug c++/33871] [4.3 Regression] typeinfo name referenced in ... defined in discarded section



------- Comment #34 from hjl at lucon dot org  2007-11-05 00:32 -------
(In reply to comment #33)
> (In reply to comment #32)
> > 
> > What if you want to reference this string from somewhere that should  
> > never be discarded, like a global variable?
> > 
> 
> Since the string is local, that global variable is defined in
> the same file as the string. You should put the global variable
> in a section which belongs to the same comdat group as the local
> string.
> 

You should also put that global variable in the same comat group in
all files where that comdat group is generated.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33871


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