lkml.org 
[lkml]   [2000]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: where did memset go?
On Wed, 2 Feb 2000, Jakub Jelinek wrote:
> On Wed, Feb 02, 2000 at 12:34:25PM +0100, Jeroen Massar wrote:
> > On Wed, 2 Feb 2000, Jakub Jelinek wrote:
> > > On Wed, Feb 02, 2000 at 11:32:13AM +0100, Jeroen Massar wrote:
> > > Did you
> > > #include <linux/string.h>
> > > ?

> > Ehmmm 3 letters: Yep
[...]

> Ok then. The issue is that gcc generates internally that memset for the
> local structure assignment. You can workaround it by doing what the patchlet
> sais. I think this is a bug in gcc because it normally expands memcpy/memset
> internally on i386.
> But I wonder why i386 does not export memcpy/memset for such cases, IMHO it
> should.
> But the patch below gives you more efficient code anyway.

Does compiling with -fno-builtin for all kernels make sense?

PPC does it already, and x86's math emu code too.

Regards,

Jeff






-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.051 / U:0.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site