This is the mail archive of the gcc-patches@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: Add -mno-library-call to ia32


* 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

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