This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: memcpy(a,b,CONST) is not inlined by gcc 3.4.1 in Linux kernel
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Denis Vlasenko <vda at ilport dot com dot ua>
- Cc: linux-kernel at vger dot kernel dot org, gcc at gcc dot gnu dot org
- Date: Tue, 29 Mar 2005 16:08:38 +0100
- Subject: Re: memcpy(a,b,CONST) is not inlined by gcc 3.4.1 in Linux kernel
- Organization: Codesourcery LLC
- References: <200503291737.06356.vda@ilport.com.ua>
Denis Vlasenko wrote:
Disassembly of section .text:
e: e8 fc ff ff ff call f <f3+0xf>
f: R_386_PC32 memcpy
#define memcpy(t, f, n) \
(__builtin_constant_p(n) ? \
__constant_memcpy((t),(f),(n)) : \
__memcpy((t),(f),(n)))
given this #define, how can 'memcpy' appear in the object file? It appears
that something odd is happening with preprocessing. Check the .i files are
as you expect. -dD and -E options will be helpful to you.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk