gcc/libcpp/include
Marek Polacek 86a15b266a libcpp: Avoid pessimizing std::move [PR106272]
std::move in a return statement can prevent the NRVO:
<https://developers.redhat.com/blog/2019/04/12/understanding-when-not-to-stdmove-in-c>

PR106272 reports that we have two such cases in class label_text's
member functions.  We have -Wpessimizing-move that's supposed to detect
problematic std::move uses, but in this case it didn't trigger.  I've filed
PR106276 to track that.

	PR preprocessor/106272

libcpp/ChangeLog:

	* include/line-map.h (class label_text): Don't std::move in a return
	statement.
2022-07-13 14:22:09 -04:00
..
cpplib.h preprocessor: -Wbidi-chars and UCNs [PR104030] 2022-01-24 17:48:23 -05:00
line-map.h libcpp: Avoid pessimizing std::move [PR106272] 2022-07-13 14:22:09 -04:00
mkdeps.h Change references of .c files to .cc files 2022-01-17 22:12:07 +01:00
symtab.h Update copyright years. 2022-01-03 10:42:10 +01:00