Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752907AbdCPSxK (ORCPT ); Thu, 16 Mar 2017 14:53:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49496 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752103AbdCPSxJ (ORCPT ); Thu, 16 Mar 2017 14:53:09 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C5D70C008B1C Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jpoimboe@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com C5D70C008B1C Date: Thu, 16 Mar 2017 13:53:05 -0500 From: Josh Poimboeuf To: Steven Rostedt Cc: x86@kernel.org, Andy Lutomirski , Pavel Machek , kernel list , Ingo Molnar , Andrew Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , Peter Anvin , Peter Zijlstra , Thomas Gleixner , Linus Torvalds Subject: Re: [PATCH] x86: mostly disable '-maccumulate-outgoing-args' Message-ID: <20170316185305.lk4pi3a7b5n6uqjd@treble> References: <20170307182855.262ezbon2pm67qfd@treble> <20170308173703.2h57rsltma3smbcm@treble> <20170308212959.ctb2ktqkg5l6r2xj@treble> <20170316154208.6c3mm6qjus3qtr6w@treble> <20170316133201.16b9a73a@gandalf.local.home> <20170316183635.wlwavbwsgkyjyjcw@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170316183635.wlwavbwsgkyjyjcw@treble> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 16 Mar 2017 18:53:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1002 Lines: 28 On Thu, Mar 16, 2017 at 01:36:35PM -0500, Josh Poimboeuf wrote: > On Thu, Mar 16, 2017 at 01:32:01PM -0400, Steven Rostedt wrote: > > On Thu, 16 Mar 2017 10:42:08 -0500 > > Josh Poimboeuf wrote: > > > + ACCUMULATE_OUTGOING_ARGS := 1 > > > + endif > > > + endif > > > +endif > > > + > > > +# Jump labels need '-maccumulate-outgoing-args' for gcc < 4.5.2 to prevent > > > > Can we make a test instead? I hate testing versions, and things get > > backported all the time. We usually like to have a test case instead of > > relying on versions. Not to mention, a newer gcc may one day break. > > Tests are generally better, but I'm not sure how to test for this > cleanly. The test is rather big for embedding in a makefile: > > https://gcc.gnu.org/bugzilla/attachment.cgi?id=22199 > > Any ideas? After some snooping I discovered there's some precedent for doing this in the scripts/gcc-*.sh files. So maybe I'll add a test there and call it from the Makefile. -- Josh