Re: [PATCH] rcu: change _wait_rcu_gp() to work around gcc 67055 bug

2015-08-25 Thread Oleg Nesterov
On 08/25, Oleg Nesterov wrote: > > The code like > > const int n = const-expr; > whatever_t array[n]; > > in inline function can confuse gcc, see > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67055#c13 > > This leads to > > In file included from include/linux/rcupdat

Re: [PATCH] rcu: change _wait_rcu_gp() to work around gcc 67055 bug

2015-08-25 Thread Paul E. McKenney
On Tue, Aug 25, 2015 at 08:45:18PM +0200, Oleg Nesterov wrote: > The code like > > const int n = const-expr; > whatever_t array[n]; > > in inline function can confuse gcc, see > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67055#c13 > > This leads to > > In file inclu

[PATCH] rcu: change _wait_rcu_gp() to work around gcc 67055 bug

2015-08-25 Thread Oleg Nesterov
The code like const int n = const-expr; whatever_t array[n]; in inline function can confuse gcc, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67055#c13 This leads to In file included from include/linux/rcupdate.h:429:0, from include