From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758228AbZKTCQu (ORCPT ); Thu, 19 Nov 2009 21:16:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758205AbZKTCQt (ORCPT ); Thu, 19 Nov 2009 21:16:49 -0500 Received: from www.tglx.de ([62.245.132.106]:45600 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757224AbZKTCQt (ORCPT ); Thu, 19 Nov 2009 21:16:49 -0500 Date: Fri, 20 Nov 2009 03:14:12 +0100 (CET) From: Thomas Gleixner To: Linus Torvalds cc: Jeff Law , rostedt@goodmis.org, "H. Peter Anvin" , David Daney , Andrew Haley , Richard Guenther , Ingo Molnar , LKML , Andrew Morton , Heiko Carstens , feng.tang@intel.com, Fr??d??ric Weisbecker , Peter Zijlstra , jakub@redhat.com, gcc@gcc.gnu.org Subject: Re: BUG: GCC-4.4.x changes the function frame on some functions In-Reply-To: Message-ID: References: <4B05B7AD.20500@redhat.com> <1258670580.22249.1002.camel@gandalf.stny.rr.com> <4B05DBBF.5000804@redhat.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Nov 2009, Thomas Gleixner wrote: > On Thu, 19 Nov 2009, Linus Torvalds wrote: > > On Fri, 20 Nov 2009, Thomas Gleixner wrote: > > > > > > While testing various kernel configs we found out that the problem > > > comes and goes. Finally I started to compare the gcc command line > > > options and after some fiddling it turned out that the following > > > minimal deltas change the code generator behaviour: > > > > > > Bad: -march=pentium-mmx -Wa,-mtune=generic32 > > > Good: -march=i686 -mtune=generic -Wa,-mtune=generic32 > > > Good: -march=pentium-mmx -mtune-generic -Wa,-mtune=generic32 Found some more: Bad: -march=k6 -Wa,-mtune=generic32 Bad: -march=geode -Wa,-mtune=generic32 Bad: -march=c3 -Wa,-mtune=generic32 That seems every thing which has MMX support but no SSE and is somehow compatible to the pentium-mmx. Looks like the code generator optimization for those was done after consuming the secret gcc-shrooms. Thanks, tglx