Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752224AbbGMSZZ (ORCPT ); Mon, 13 Jul 2015 14:25:25 -0400 Received: from mail-qk0-f169.google.com ([209.85.220.169]:36501 "EHLO mail-qk0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbbGMSZY (ORCPT ); Mon, 13 Jul 2015 14:25:24 -0400 MIME-Version: 1.0 In-Reply-To: <20150422092040.GB395@x4> References: <1429565231-4609-1-git-send-email-hagen@jauu.net> <20150420215645.GC10191@pd.tnic> <20150421074212.GA25081@gmail.com> <20150421225723.GA5927@virgo.local> <20150422052441.GA395@x4> <20150422055848.GA3307@virgo.local> <20150422092040.GB395@x4> From: Denys Vlasenko Date: Mon, 13 Jul 2015 20:25:04 +0200 Message-ID: Subject: Re: [PATCH RFC] x86: enforce inlining for atomics To: Markus Trippelsdorf Cc: Hagen Paul Pfeifer , Ingo Molnar , Linus Torvalds , Borislav Petkov , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Andrew Morton Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 23 On Wed, Apr 22, 2015 at 11:20 AM, Markus Trippelsdorf wrote: > On 2015.04.22 at 07:58 +0200, Hagen Paul Pfeifer wrote: >> * Markus Trippelsdorf | 2015-04-22 07:24:41 [+0200]: >> >I cannot reproduce this issue with my config with 4.8, 4.9 or 5. Could >> >you please come up with a small testcase and open a gcc bug (with full >> >gcc command line)? >> >> the attached config file should do the trick. Can you try it? > > It is definitely a -O2 vs. -Os issue. With your config: It's true that it happens more often with -Os, but -O2 is not immune either. See comments in the gcc bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66122 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/