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 libstdc++/80811] out-of-line string members less efficient than they could be


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80811

--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
When user specializations are allowed, who knows what might happen.

As an experiment,

  namespace std { extern template  __attribute__((pure)) int
string::compare(const char*)const; }

seems to work. I think it may make sense to add the attribute only in the
extern template case, since that's the case where the explicit instantiation is
hindering IPA.

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