This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-19980715 doesn't recognize '__linux__' in C++ code
- To: hjl at ocean dot lucon dot org (H.J. Lu)
- Subject: Re: egcs-19980715 doesn't recognize '__linux__' in C++ code
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Tue, 21 Jul 1998 15:07:03 +0200
- Cc: jinbo21 at soback dot kornet21 dot net, egcs at cygnus dot com
- References: <Pine.LNX.4.00.9807181340400.2148-100000@progress.plw.net>
At 22:03 20.07.98 , H.J. Lu wrote:
>>
>> I compilled, installed egcs-19980715(egcs-2.91.50) on i586-pc-linux-gnu
>> system(RH5.1, glibc-2.0.94-4, libg++-2.8.2-980708, ...).
>> It compiles linux kernel 2.1.108, 2.1.109, and compiled kernels boots
>> OK.
>> But 'make -k check' shows gcc(egcs-19980715) cannot recognize
>> '__linux__' in libg++/etc/lf/screen.cc and fails to compile screen.cc.
>> It works well with 'LINUX' or '__LINUX__', but, I think, these are not
>> used frequently on linux system.
>>
>
>Get libg++ 2.8.2 980720.
>
>
>H.J.
>---
>This is a libg++ addon for libstdc++ 2.8.1 and egcs. It is needed only
>if your applications depend on libg++ and the dependency on libg++
>cannot be removed easily. The standalone libg++ is not longer needed.
>
>Changes from libg++ 2.8.2 980708:
>
>1. Include <termcap.h> in etc/lf/screen.cc for Linux.
Haven't tested yet, but this could possibly fail with "Invalid exception
specification" with glibc-2.1, cause termcap.h doesn't know glibc-2.1 yet
and uses __P and not __PMT in a typedef.
Franz.