This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined references to 'memcpy' when compiling Linux Kernel
- To: "John Hughes" <john at Calva dot COM>
- Subject: Re: Undefined references to 'memcpy' when compiling Linux Kernel
- From: "Andi Kleen" <ak at suse dot de>
- Date: Mon, 19 Jun 2000 12:05:45 +0200
- Cc: <ak at suse dot de>, "H . J . Lu" <hjl at lucon dot org>,"Jeff Garzik" <jgarzik at mandrakesoft dot com>,"Byron Stanoszek" <gandalf at winds dot org>,<linux-kernel at vger dot rutgers dot edu>, <alan at lxorguk dot ukuu dot org dot uk>,<gcc at gcc dot gnu dot org>
- References: <20000619112714.A29583@gruyere.muc.suse.de> <NCBBLMGKIKDGJMEOMNMECEEHGOAA.john@Calva.COM>
On Mon, Jun 19, 2000 at 12:04:52PM +0200, John Hughes wrote:
> > Inlined memcpy can be very big in some cases, e.g. when gcc cannot
> > figure out the alignment of the target and destination pointers
>
> But in the case reported on a '386 I'd expect the inlined code to
> be tiny, smaller than the call.
I haven't looked at the case, but gcc probably was not able to
guarantee the alignments based on the type information.
-Andi