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++/59048] operator== between std::string and const char* slower than strcmp


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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |---

--- Comment #15 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Ondrej Bilka from comment #13)
> Yes, this is duplicate of following.
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052

No it isn't. I made a comment related to that other PR, but IIRC the main point
here is that the function is not pulled out of the loop, which is independent
of how memcmp gets expanded.


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