Patchwork [v3] Fix profile mode failures

login
register
mail settings
Submitter Jonathan Wakely
Date Nov. 6, 2012, 12:21 a.m.
Message ID <CAH6eHdSMw_vUPMAfR1TMRQHb+zatKeYWJgYKNmmuHvuaKguHEg@mail.gmail.com>
Download mbox | patch
Permalink /patch/197372/
State New
Headers show

Comments

Jonathan Wakely - Nov. 6, 2012, 12:21 a.m.
On 6 November 2012 00:06, Jonathan Wakely wrote:
>
> There's still a failure for 23_containers/map/modifiers/emplace/1.cc
> (which didn't even compile in profile mode previously) that I'll look
> into.

That turned out to be trivial, fixed like so.

        * include/profile/map.h (map::emplace_hint): Add missing return.

Tested x86_64-linux, committed to trunk.

Patch

diff --git a/libstdc++-v3/include/profile/map.h b/libstdc++-v3/include/profile/map.h
index fe2f456..f96f18b 100644
--- a/libstdc++-v3/include/profile/map.h
+++ b/libstdc++-v3/include/profile/map.h
@@ -261,6 +261,7 @@  namespace __profile
 					   std::forward<_Args>(__args)...);
 	  __profcxx_map_to_unordered_map_insert(this, size_before,
 						size() - size_before);
+	  return __res;
 	}
 #endif