This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to allow strlen expander to fail


Jan Hubicka <hubicka@atrey.karlin.mff.cuni.cz> said on gcc-patches:
> This patch adds the strlen libcall and necesary code to emit_builtin_strlen
> to emit libcall when strlen expander fails.

Is there some documentation about the functions gcc might generate calls
to? There was recently a problem with the Linux kernel because gcc
willy-nilly called memcpy(3), and that one isn't around in the kernel,
which relies either on reimplementations (through a mass of macros, which
end up calling something called differently) or on ths gcc builtins. At
least, there should be a mini-library (or a list at the very least) of the
non-libgcc functions that the compiler could generate calls to.

I assume this would be needed for a freestanding C implementation, at least?
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]