lkml.org 
[lkml]   [1999]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] {asm-i386,linux}/string.h:Adjustments for **NOT** using gcc builtins
Date
From
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.
BTW, what is wrong with the builtins? I see claims that they generate
horrible code, but no substantiation... and even if so, I'd prefer to fix
the builtins than to kludge around them in the kernel...

> 2- __inline__ instead of inline (This is a header included in external
> program [indirectly!])

Should _never_ happen with glibc-2.1, and if it happens you have bigger
trouble than that.

> 3- use __kernel_size_t instead of size_t as in linux/string.h

Why?
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513

-
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:52    [W:0.041 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site