[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/19793] script-sections.cc:1475: possible redundant string copy
From: |
ccoutant at gmail dot com |
Subject: |
[Bug gold/19793] script-sections.cc:1475: possible redundant string copy ? |
Date: |
Thu, 10 Mar 2016 23:20:27 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19793
Cary Coutant <ccoutant at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #1 from Cary Coutant <ccoutant at gmail dot com> ---
No change for three reasons:
(1) The method is inlined, so it really makes no difference.
(2) We're making a copy of the string, and in that case, it's better to pass by
value and let the compiler make the copy.
(3) If you look at the point of call, you'll see that it's called with a
temporary value returned by another function, so no copy needs to be made
anyway.
--
You are receiving this mail because:
You are on the CC list for the bug.