Re: [PATCH] PR c++/80473 allow suppressing notes about over-aligned new

2017-04-20 Thread Jonathan Wakely
On 20/04/17 17:43 +0100, Jonathan Wakely wrote: On 20/04/17 17:33 +0200, Marek Polacek wrote: On Thu, Apr 20, 2017 at 05:22:00PM +0200, Jakub Jelinek wrote: On Thu, Apr 20, 2017 at 04:09:20PM +0100, Jonathan Wakely wrote: --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -3128,11 +3128,14 @@ build_ne

Re: [PATCH] PR c++/80473 allow suppressing notes about over-aligned new

2017-04-20 Thread Jonathan Wakely
On 20/04/17 17:33 +0200, Marek Polacek wrote: On Thu, Apr 20, 2017 at 05:22:00PM +0200, Jakub Jelinek wrote: On Thu, Apr 20, 2017 at 04:09:20PM +0100, Jonathan Wakely wrote: > --- a/gcc/cp/init.c > +++ b/gcc/cp/init.c > @@ -3128,11 +3128,14 @@ build_new_1 (vec **placement, tree type, tree nelts

Re: [PATCH] PR c++/80473 allow suppressing notes about over-aligned new

2017-04-20 Thread Marek Polacek
On Thu, Apr 20, 2017 at 05:22:00PM +0200, Jakub Jelinek wrote: > On Thu, Apr 20, 2017 at 04:09:20PM +0100, Jonathan Wakely wrote: > > --- a/gcc/cp/init.c > > +++ b/gcc/cp/init.c > > @@ -3128,11 +3128,14 @@ build_new_1 (vec **placement, tree > > type, tree nelts, > > { > >warning (OPT_

Re: [PATCH] PR c++/80473 allow suppressing notes about over-aligned new

2017-04-20 Thread Jonathan Wakely
On 20/04/17 17:22 +0200, Jakub Jelinek wrote: On Thu, Apr 20, 2017 at 04:09:20PM +0100, Jonathan Wakely wrote: --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -3128,11 +3128,14 @@ build_new_1 (vec **placement, tree type, tree nelts, { warning (OPT_Waligned_new_, "% of type %qT with exten

Re: [PATCH] PR c++/80473 allow suppressing notes about over-aligned new

2017-04-20 Thread Jakub Jelinek
On Thu, Apr 20, 2017 at 04:09:20PM +0100, Jonathan Wakely wrote: > --- a/gcc/cp/init.c > +++ b/gcc/cp/init.c > @@ -3128,11 +3128,14 @@ build_new_1 (vec **placement, tree type, > tree nelts, > { >warning (OPT_Waligned_new_, "% of type %qT with extended " > "alignment %d",

[PATCH] PR c++/80473 allow suppressing notes about over-aligned new

2017-04-20 Thread Jonathan Wakely
This suppresses the notes about over-aligned new when the corresponding warning is suppressed, either by -w or because it's in a system header (as in PR 80390, which I originally tried to fix in the library). OK for trunk? And gcc-7-branch after 7.1 is released? Is this the right place for the n