From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15532 invoked by alias); 29 Nov 2010 11:57:37 -0000 Received: (qmail 15522 invoked by uid 22791); 29 Nov 2010 11:57:36 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hofr.at (HELO mail.hofr.at) (212.69.189.236) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Nov 2010 11:57:29 +0000 Received: by mail.hofr.at (Postfix, from userid 1002) id D7A3C4F8349; Mon, 29 Nov 2010 12:57:24 +0100 (CET) Date: Mon, 29 Nov 2010 11:57:00 -0000 From: Nicholas Mc Guire To: Christian Borntraeger Cc: Segher Boessenkool , Am?rico Wang , Hui Zhu , linux-kernel@vger.kernel.org, gdb@sourceware.org, hellogcc@freelists.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH] Built kernel without -O2 option Message-ID: <20101129115724.GA32318@opentech.at> References: <20101129081619.GD5218@cr0.nay.redhat.com> <4CF37603.5080301@de.ibm.com> <52488.94.211.195.167.1291029121.squirrel@gate.crashing.org> <4CF38BBA.4020202@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CF38BBA.4020202@de.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-11/txt/msg00118.txt.bz2 On Mon, 29 Nov 2010, Christian Borntraeger wrote: > Am 29.11.2010 12:12, schrieb Segher Boessenkool: > >> In essence -O2 just tells gcc to activate a list of optimizations > >> gcc -Q -O2 --help=optimizers I think for completness you would need to pass gcc -Wextra -Q -O2 --help=optimizers or you could miss some options > >> tells you what. > > > > Not quite; see http://gcc.gnu.org/wiki/FAQ#optimization-options . > > > > Erm...right. Thank you. well I guess you always could explicidly turn off all optioins with -fnoWHATEVER you want to disable and thus remove all unwanted flags - admitedly a bit painfull though. hofrat