From: Mike Frysinger Date: Wed, 9 Nov 2011 23:13:24 -0500 Subject: [U-Boot] [RFC] x86: Do no use reparm as it break libgcc linkage In-Reply-To: References: <1320834779-15460-1-git-send-email-graeme.russ@gmail.com> <201111091212.49118.vapier@gentoo.org> Message-ID: <201111092313.25335.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 09 November 2011 16:42:51 Graeme Russ wrote: > On Thu, Nov 10, 2011 at 4:12 AM, Mike Frysinger wrote: > > On Wednesday 09 November 2011 05:32:59 Graeme Russ wrote: > >> --- a/arch/x86/config.mk > >> +++ b/arch/x86/config.mk > >> > >> -PLATFORM_CPPFLAGS += -mregparm=3 > >> -PLATFORM_CPPFLAGS += -fomit-frame-pointer > > > > this sounds like you're throwing the baby out with the bath water. > > doesn't this severely affect the generated code ? > > No - omit-frame-pointer is enabled by -O2 and also: > > http://gcc.gnu.org/gcc-4.6/changes.html > > "The default setting (when not optimizing for size) for 32-bit > GNU/Linux and Darwin x86 targets has been changed to > -fomit-frame-pointer. The default can be reverted to > -fno-omit-frame-pointer by configuring GCC with the > --enable-frame-pointer configure option." > > So the flag is a do-nothing ok, except: - we build u-boot with -Os and not -O2 - i'd say most people aren't using gcc-4.6 i was referring also to throwing away -mregparm=3 ... -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111109/2aae86ce/attachment.pgp