This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to allow strlen expander to fail
- To: gcc at gcc dot gnu dot org
- Subject: Re: Patch to allow strlen expander to fail
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Sun, 05 Mar 2000 22:59:25 -0300
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