Re: [wwwdocs] changes.html - document new warning options

2017-02-01 Thread Gerald Pfeifer
On Tue, 31 Jan 2017, Martin Sebor wrote: > Thanks for the careful review (and debugging)! Thanks for taking the time to prepare all this to begin with. ;-) On Wed, 1 Feb 2017, Jakub Jelinek wrote: >>> void f (size_t n) >>> { >>> char *d = alloca (n) > Missing semicolon after alloca (n) M

Re: [wwwdocs] changes.html - document new warning options

2017-02-01 Thread Jakub Jelinek
On Wed, Feb 01, 2017 at 05:50:08AM -0500, Aldy Hernandez wrote: > > > Since you ask so nicely I added another example but I'm afraid it > > isn't terribly interesting: > > > > In contrast, a call to alloca that isn't bounded at all such as > > in the following function will elicit the warning

Re: [wwwdocs] changes.html - document new warning options

2017-02-01 Thread Aldy Hernandez
Since you ask so nicely I added another example but I'm afraid it isn't terribly interesting: In contrast, a call to alloca that isn't bounded at all such as in the following function will elicit the warning below regardless of the size argument to the option. void f (size_t n) {

Re: [wwwdocs] changes.html - document new warning options

2017-01-31 Thread Martin Sebor
On 01/31/2017 02:16 PM, Gerald Pfeifer wrote: Wow, that's quite a patch. And quite some contributions behind that! :-) Let me offer some comments, and then I suggest you commit what you have (taking these comments into account), and we can still improve things then if there is further feedback.

Re: [wwwdocs] changes.html - document new warning options

2017-01-31 Thread Gerald Pfeifer
Wow, that's quite a patch. And quite some contributions behind that! :-) Let me offer some comments, and then I suggest you commit what you have (taking these comments into account), and we can still improve things then if there is further feedback. Index: gcc-7/changes.html

Re: [wwwdocs] changes.html - document new warning options

2017-01-31 Thread Martin Sebor
On 01/31/2017 10:30 AM, Aldy Hernandez wrote: On 01/31/2017 10:57 AM, Martin Sebor wrote: On 01/31/2017 03:50 AM, Aldy Hernandez wrote: On 01/24/2017 03:07 PM, Martin Sebor wrote: Hi Martin. Thank you for taking care of this. +The -Walloca-larger-than=size option detects +calls to t

Re: [wwwdocs] changes.html - document new warning options

2017-01-31 Thread Aldy Hernandez
On 01/31/2017 10:57 AM, Martin Sebor wrote: On 01/31/2017 03:50 AM, Aldy Hernandez wrote: On 01/24/2017 03:07 PM, Martin Sebor wrote: Hi Martin. Thank you for taking care of this. +The -Walloca-larger-than=size option detects +calls to the alloca function whose argument may exceed +

Re: [wwwdocs] changes.html - document new warning options

2017-01-31 Thread Martin Sebor
On 01/31/2017 03:50 AM, Aldy Hernandez wrote: On 01/24/2017 03:07 PM, Martin Sebor wrote: Hi Martin. Thank you for taking care of this. +The -Walloca-larger-than=size option detects +calls to the alloca function whose argument may exceed +the specified size. +-Walloca-larger-t

Re: [wwwdocs] changes.html - document new warning options

2017-01-31 Thread Aldy Hernandez
On 01/24/2017 03:07 PM, Martin Sebor wrote: Hi Martin. Thank you for taking care of this. +The -Walloca-larger-than=size option detects + calls to the alloca function whose argument may exceed + the specified size. + -Walloca-larger-than is not included in either +