Re: [PATCH] Fix PR61564 - optimize attribute/pragma accepting any option

2016-06-07 Thread Richard Biener
On Tue, 7 Jun 2016, Jakub Jelinek wrote: > On Tue, Jun 07, 2016 at 10:15:39AM +0200, Richard Biener wrote: > > > > This fixes PR61564 by diagnosing (and ignoring) options not marked with > > 'Optimization' being applied to #pragma GCC optimize or via the > > optimize attribute. > > > > The reaso

Re: [PATCH] Fix PR61564 - optimize attribute/pragma accepting any option

2016-06-07 Thread Richard Biener
On Tue, 7 Jun 2016, Jakub Jelinek wrote: > On Tue, Jun 07, 2016 at 10:15:39AM +0200, Richard Biener wrote: > > > > This fixes PR61564 by diagnosing (and ignoring) options not marked with > > 'Optimization' being applied to #pragma GCC optimize or via the > > optimize attribute. > > > > The reaso

Re: [PATCH] Fix PR61564 - optimize attribute/pragma accepting any option

2016-06-07 Thread Jakub Jelinek
On Tue, Jun 07, 2016 at 10:15:39AM +0200, Richard Biener wrote: > > This fixes PR61564 by diagnosing (and ignoring) options not marked with > 'Optimization' being applied to #pragma GCC optimize or via the > optimize attribute. > > The reason is that while we save/restore option state for 'Optimi

[PATCH] Fix PR61564 - optimize attribute/pragma accepting any option

2016-06-07 Thread Richard Biener
This fixes PR61564 by diagnosing (and ignoring) options not marked with 'Optimization' being applied to #pragma GCC optimize or via the optimize attribute. The reason is that while we save/restore option state for 'Optimize' marked options we don't do that for other options. Thus while such opti