From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7577 invoked by alias); 29 Nov 2010 18:05:00 -0000 Received: (qmail 7568 invoked by uid 22791); 29 Nov 2010 18:04:59 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,TW_CL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from lennier.cc.vt.edu (HELO lennier.cc.vt.edu) (198.82.162.213) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Nov 2010 18:04:52 +0000 Received: from vivi.cc.vt.edu (vivi.cc.vt.edu [198.82.163.43]) by lennier.cc.vt.edu (8.13.8/8.13.8) with ESMTP id oATI3h3j022527; Mon, 29 Nov 2010 13:03:43 -0500 Received: from turing-police.cc.vt.edu (EHLO localhost) ([128.173.14.107]) by vivi.cc.vt.edu (MOS 4.2.2-FCS FastPath queued) with ESMTP id OKQ38570; Mon, 29 Nov 2010 13:03:42 -0500 (EST) To: =?utf-8?Q?Am=C3=A9rico?= Wang Cc: Hui Zhu , linux-kernel@vger.kernel.org, gdb@sourceware.org, hellogcc@freelists.org Subject: Re: [PATCH] Built kernel without -O2 option In-Reply-To: Your message of "Mon, 29 Nov 2010 16:52:50 +0800." <20101129085250.GF5218@cr0.nay.redhat.com> From: Valdis.Kletnieks@vt.edu References: <20101129081619.GD5218@cr0.nay.redhat.com> <20101129085250.GF5218@cr0.nay.redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1291053822_5346P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 29 Nov 2010 18:05:00 -0000 Message-ID: <13378.1291053822@localhost> X-Mirapoint-Received-SPF: 128.173.14.107 localhost Valdis.Kletnieks@vt.edu 2 pass X-Mirapoint-IP-Reputation: reputation=neutral-1, source=Fixed, refid=n/a, actions=MAILHURDLE SPF TAG X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020206.4CF3EAFF.006C,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=single engine 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/msg00121.txt.bz2 --==_Exmh_1291053822_5346P Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 620 On Mon, 29 Nov 2010 16:52:50 +0800, Am=E9rico Wang said: > >For example: > >ifdef CONFIG_CC_CLOSE_OPTIMIZATION > >CFLAGS_fpu.o +=3D -O2 > >CFLAGS_aesni-intel_glue.o +=3D -O2 > >CFLAGS_ghash-clmulni-intel_glue.o +=3D -O2 > >endif >=20 > No, I didn't mean this, I meant some function that have to be inlined > are those who only work when being inlined, e.g. current_text_addr(). >=20 > I think it is not alone. :) Anything that uses the gcc __builtin_return_adress() extension should also = be audited - that returns different results for inlined and non-inlined caller= s. --==_Exmh_1291053822_5346P Content-Type: application/pgp-signature Content-length: 227 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFM8+r+cC3lWbTT17ARAgGqAKDW6hcAuzTGLrRKQcrTxqhrdBrJmACgnUfb QfFuxv2LjcXyBo6vAfKHPRE= =z4qj -----END PGP SIGNATURE----- --==_Exmh_1291053822_5346P--