From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEB5CC43457 for ; Sun, 11 Oct 2020 12:28:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7FB6A207E8 for ; Sun, 11 Oct 2020 12:28:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387821AbgJKM2R (ORCPT ); Sun, 11 Oct 2020 08:28:17 -0400 Received: from albireo.enyo.de ([37.24.231.21]:59862 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387809AbgJKM2R (ORCPT ); Sun, 11 Oct 2020 08:28:17 -0400 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1kRaSP-0007ye-GW; Sun, 11 Oct 2020 12:28:09 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1kRaSP-0004Lt-Be; Sun, 11 Oct 2020 14:28:09 +0200 From: Florian Weimer To: Mark Wielaard Cc: Andi Kleen , Peter Zijlstra , Stephane Eranian , linux-toolchains@vger.kernel.org, Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Ingo Molnar , Jiri Olsa , Namhyung Kim , Ian Rogers , "Phillips\, Kim" , Mark Rutland , Masami Hiramatsu Subject: Re: Additional debug info to aid cacheline analysis References: <20201006131703.GR2628@hirez.programming.kicks-ass.net> <20201008070231.GS2628@hirez.programming.kicks-ass.net> <50338de81b34031db8637337f08b89b588476211.camel@klomp.org> <20201008212259.gdhlwdswn5pu4zos@two.firstfloor.org> <20201010205836.GA2666@wildebeest.org> <87h7r1x8kp.fsf@mid.deneb.enyo.de> <20201011122336.GC2666@wildebeest.org> Date: Sun, 11 Oct 2020 14:28:09 +0200 In-Reply-To: <20201011122336.GC2666@wildebeest.org> (Mark Wielaard's message of "Sun, 11 Oct 2020 14:23:36 +0200") Message-ID: <874kn1x7za.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mark Wielaard: > On Sun, Oct 11, 2020 at 02:15:18PM +0200, Florian Weimer wrote: >> * Mark Wielaard: >> >> > Yes, that would work. I don't know what the lowest supported GCC >> > version is, but technically it was definitely fixed in 4.10.0, 4.8.4 >> > and 4.9.2. And various distros would probably have backported the >> > fix. But checking for 5.0+ would certainly give you a good version. >> > >> > How about the attached? >> >> Would it be possible to test for the actual presence of the bug, using >> -fcompare-debug? > > Yes, that was discussed in the original commit message, but it was decided > that disabling it unconditionaly was easier. See commit 2062afb4f. I think the short test case was not yet available at the time of the Linux commit. But then it may not actually detect the bug in all affected compilers. Anyway, making this conditional on the GCC version is already a clear improvement.