Re: [PATCH] {asm-i386,linux}/string.h:Adjustments for **NOT** usinggcc

cate@student.ethz.ch
Thu, 03 Jun 1999 09:37:26 +0200


wrote:
>
> Giacomo Amabile Catenazzi <cate@student.ethz.ch> said:
> > This patch (to linux-2.3.4) fixes:
> > 1- Force the compiler not to use the builtin (in compiler) str* and mem*
> > function, by rename it with preprocessor
> > NOTE: I have modified more function that actually need.
>
> Not needed, if the <linux/string.h> header is included whereever needed.

My test with strcmp (wich is buitin) with gcc-2.7.2.3 and egcs-1.1.2
report:
if compiler found strcmp, use internal buitin, also if I've declared
a strcmp inline.
strlen instead, seem to check if there are an inline function, before
use the strlen-builtin. (strlen is builtin only on egcs).

Also with gcc-2.7.2.3 Horst von Brand PATCH do nothing (the funtions are
already builtin)

Giacomo Catenazzi

-
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/