Re: [PATCH] PR libstdc++/80285 optimize std::make_shared for -fno-rtti

2017-05-16 Thread Jonathan Wakely
On 11/05/17 15:19 +0100, Jonathan Wakely wrote: std::make_shared didn't support embedding the object within the shared_ptr bookkeeping structure when -fno-rtti was used. This was because the trick I use for getting the address of the embedded object relied on typeid, so without RTTI it just creat

[PATCH] PR libstdc++/80285 optimize std::make_shared for -fno-rtti

2017-05-11 Thread Jonathan Wakely
std::make_shared didn't support embedding the object within the shared_ptr bookkeeping structure when -fno-rtti was used. This was because the trick I use for getting the address of the embedded object relied on typeid, so without RTTI it just creating the object separately on the heap. This remo