Re: C++ PATCH for c++/77742 (-Waligned-new and placement new)

2016-10-20 Thread Eric Botcazou
> Fixed the testcase. It passes now, thanks! -- Eric Botcazou

Re: C++ PATCH for c++/77742 (-Waligned-new and placement new)

2016-10-20 Thread Jason Merrill
On Thu, Oct 20, 2016 at 6:50 AM, Eric Botcazou wrote: >> Similarly on arm*/aarch64*: >> /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/g++.dg/cpp1z/aligned-new7. >> C:13:41: warning: requested alignment 32 is larger than 16 [-Wattributes] > > Likewise on SPARC/Solaris: >

Re: C++ PATCH for c++/77742 (-Waligned-new and placement new)

2016-10-20 Thread Eric Botcazou
> Similarly on arm*/aarch64*: > /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/g++.dg/cpp1z/aligned-new7. > C:13:41: warning: requested alignment 32 is larger than 16 [-Wattributes] Likewise on SPARC/Solaris: aligned-new7.C: In function 'int main()': aligned-new7.C:13:41: warning: requested

Re: C++ PATCH for c++/77742 (-Waligned-new and placement new)

2016-10-13 Thread Christophe Lyon
Hi Jason, On 13 October 2016 at 10:54, Andreas Schwab wrote: > FAIL: g++.dg/cpp1z/aligned-new7.C (test for excess errors) > Excess errors: > /daten/aranym/gcc/gcc-20161013/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C:13:41: > warning: requested alignment 8 is larger than 2

Re: C++ PATCH for c++/77742 (-Waligned-new and placement new)

2016-10-13 Thread Andreas Schwab
FAIL: g++.dg/cpp1z/aligned-new7.C (test for excess errors) Excess errors: /daten/aranym/gcc/gcc-20161013/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C:13:41: warning: requested alignment 8 is larger than 2 [-Wattributes] Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint =

C++ PATCH for c++/77742 (-Waligned-new and placement new)

2016-10-12 Thread Jason Merrill
It doesn't make sense to warn about placement new of over-aligned types; most occurrences are likely to be doing this in order to provide properly aligned memory by allocating it first and then using the standard non-allocating placement new. Also, the discussion of -Waligned-new on HPPA led me