This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: using glibc2.1 with compiler other than gcc: Problems
- To: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Subject: Re: using glibc2.1 with compiler other than gcc: Problems
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 28 Jul 1998 16:35:43 -0700
- Cc: libc-hacker@cygnus.com
- References: <13758.10334.344753.387844@arthur.rhein-neckar.de>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:
> What can we do to fix this in glibc 2.1?
> a) Add a special
> #ifdef __TenDRA__
> # define __inline inline
> #endif
> since tcc can use inline. This doesn't solve the general problem
> since compiler y also needs extra defines...
I think we should add the above (and maybe for other compilers as they
get used)
For glibc sys/cdefs.h also should contain
#define __inline __inline
and in the case where inline is not available we'll have
#define __inline 0
All code in headers which depends on inline will be protected by
#if __inline
#endif
This tests exactly for what we are looking for, namely, that inlining
is available.
Comments?
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------