From: Oleg Nesterov <oleg@redhat.com>
To: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Mark Salter <msalter@redhat.com>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
uclinux-h8-devel@lists.sourceforge.jp,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>,
Josh Triplett <josh@joshtriplett.org>,
Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH] rcu: change _wait_rcu_gp() to work around gcc 67055 bug
Date: Tue, 25 Aug 2015 21:02:12 +0200 [thread overview]
Message-ID: <20150825190212.GA16036@redhat.com> (raw)
In-Reply-To: <20150825184518.GA15234@redhat.com>
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/rcupdate.h:429:0,
> from include/linux/rcusync.h:5,
> from kernel/rcu/sync.c:1:
> include/linux/rcutiny.h: In function 'rcu_barrier_sched':
> include/linux/rcutiny.h:55:20: internal compiler error: Segmentation
> fault
> static inline void rcu_barrier_sched(void)
>
> build failure after ec90a194a "rcu: Create a synchronize_rcu_mult()"
> and 114b7fd4b "rcu: Create rcu_sync infrastructure" meet each other.
and just in case... make make kernel/rcu/rcutorture.o fails the same
way if CONFIG_RCU_TORTURE_TEST && CONFIG_TINY_RCU. So we need a work-
around even before/without rcu_sync.
Oleg.
prev parent reply other threads:[~2015-08-25 19:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 18:34 h8300 build failures ijn linux-next Guenter Roeck
2015-08-25 5:56 ` Yoshinori Sato
2015-08-25 14:27 ` Mark Salter
2015-08-25 15:03 ` h8300 build failures in linux-next (in rcu code, gcc 5.x related, not limited to h8300) Guenter Roeck
2015-08-25 16:11 ` Oleg Nesterov
2015-08-25 16:23 ` Oleg Nesterov
2015-08-25 16:51 ` Yoshinori Sato
2015-08-25 17:34 ` Oleg Nesterov
2015-08-25 18:02 ` Oleg Nesterov
2015-08-25 18:16 ` Mark Salter
2015-08-25 18:45 ` [PATCH] rcu: change _wait_rcu_gp() to work around gcc 67055 bug Oleg Nesterov
2015-08-25 19:00 ` Paul E. McKenney
2015-08-25 19:02 ` Oleg Nesterov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150825190212.GA16036@redhat.com \
--to=oleg@redhat.com \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=msalter@redhat.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=peterz@infradead.org \
--cc=uclinux-h8-devel@lists.sourceforge.jp \
--cc=ysato@users.sourceforge.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox