From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 11 Nov 2011 00:04:58 -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> Message-ID: <201111110005.00044.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 Thursday 10 November 2011 23:49:07 Graeme Russ wrote: > Remember, U-Boot uses --no-builtin, so apart from the libgcc functions, > there are no gcc functions included. i don't think that's generally how gcc builtin's work. for the vast majority, they're of the "optimize away with simple insns when possible" variety. so if you do something like: char c[4]; memset(c, 0, sizeof(c)); gcc will optimize that into a single 32bit load rather than calling memcpy(). but because we use -fno-builtins, gcc will make sure to call memcpy(). i can't think of any calls off the top of my head which would result in invoking a func in libgcc.a. -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/20111111/12662c0a/attachment.pgp