Re: [C PATCH] Fix handling side-effects of parameters (PR c/77767)

2016-12-20 Thread Joseph Myers
On Tue, 20 Dec 2016, Jakub Jelinek wrote: > Hi! > > We only record side-effects from the last parameter, the following patch > fixes that by accumulating them from all the parameters. I've checked all > the callers of grokdeclarator and grokdeclarator is always called with expr > either pointing

[C PATCH] Fix handling side-effects of parameters (PR c/77767)

2016-12-20 Thread Jakub Jelinek
Hi! We only record side-effects from the last parameter, the following patch fixes that by accumulating them from all the parameters. I've checked all the callers of grokdeclarator and grokdeclarator is always called with expr either pointing to NULL_TREE, or being NULL, or where we want the side