This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add -mno-library-call to ia32
- To: "H . J . Lu" <hjl at valinux dot com>
- Subject: Re: Add -mno-library-call to ia32
- From: Philipp Thomas <pthomas at suse dot de>
- Date: Sat, 17 Jun 2000 21:18:13 +0200
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20000617104416.A10070@valinux.com>
* H . J . Lu (hjl@valinux.com) [20000617 19:44]:
> I really like to get the old gcc behavior at least by switch.
> It is very useful for Linux kernel.
IMHO this patch should *not* be accepted but instead the kernel should
either provide non inlined versions of functions where gcc will eventually
issue libcalls or use -ffreestanding. Let me quote from gcc.info:
-ffreestanding'
Assert that compilation takes place in a freestanding environment.
This implies -fno-builtin'. A freestanding environment is one
in which the standard library may not exist, and program startup
may not necessarily be at `Main'. The most obvious example is an
OS kernel. This is equivalent to -fno-hosted'.
Notice the mentioning of OS kernel ;-) As I already wrote, Linus would
accept a patch implementing a non inlined memcpy for ia32.
Given all that, I see no reason for implementing -mno-library-call.
Philipp
--
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany
#define NINODE 50 /* number of in core inodes */
#define NPROC 30 /* max number of processes */
-- Version 7 UNIX for PDP 11, /usr/include/sys/param.h