[PATCH] PR libstdc++/70940 optimize pmr::resource_adaptor for allocators using malloc

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Thu Jul 26 11:12:00 GMT 2018


Hi Jonathan,

> Rainer, this is another place where alignof(max_align_t) gets encoded
> into the ABI, so is affected by PR 77691 as well.

indeed, fixed by the following patch.  Tested on i386-pc-solaris2.11,
ok for mainline?

The ugly thing about xfailing the affected tests is that they will XPASS
once in a while when malloc happens to return 16-byte aligned memory.
However, I'm reluctant to skip them instead at least while there's a
chance that Solaris will fix 32-bit x86 malloc alignment post Solaris
11.4.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2018-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR libstdc++/77691
	* testsuite/experimental/memory_resource/new_delete_resource.cc:
	xfail execution on 32-bit Solaris/x86.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: solx86-v3-new_delete_resource-xfail.patch
Type: text/x-patch
Size: 755 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180726/3e58c0ad/attachment.bin>


More information about the Gcc-patches mailing list