This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs 1.0.1 miscompiles Linux 2.0.33
- To: John Carr <jfc at mit dot edu>
- Subject: Re: egcs 1.0.1 miscompiles Linux 2.0.33
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 01 Mar 1998 16:17:25 -0700
- cc: Gabriel Paubert <paubert at iram dot es>, Linus Torvalds <torvalds at transmeta dot com>, linux-kernel at vger dot rutgers dot edu, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199803012155.QAA12210@jfc.>you write:
>
> I think this is beyond the limits of what can or should be done with gcc's
> inline assembly. strstr is a volatile asm which needs 18 instructions, 5
> registers, and takes a long time to run. I've seen cases like this where
> the separate function is faster than the inlined version because of reduced
> register pressure in the caller.
Regardless of the size, the strchr asm is exposing some problems in
the generic asm mechanisms. Like Linus, my main concern is with
fixing those generic problems, not strstr specifically.
jeff