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]

Re: std::terminate


According to Martin v. Loewis:
> > Beware, build_library_fn_1 is used for both C++ and C linkage.
> > My patch, copied below, only affects functions with C++ linkage.
> 
> [...]
> > +  if (current_namespace != global_namespace)
> > +    DECL_CONTEXT (fn) = current_namespace;
> 
> What is the difference between the two patches? FROB_CONTEXT does
> exactly that...

But I'm patching a different function, one with "_cp_" in its name.
-- 
Chip Salzenberg              - a.k.a. -              <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
    but he stepped in a wormhole and had to go in early."  // MST3K

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