This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Still having major problems with cpplib and imake
- To: Zack Weinberg <zack at wolery dot cumb dot org>, Neil Booth <NeilB at earthling dot net>
- Subject: Still having major problems with cpplib and imake
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Fri, 12 May 2000 09:56:25 +0200
- Cc: gcc-bugs at gcc dot gnu dot org
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
Hi!
Current cpp still does has no chance of working with imake.
I've added a small patch to imake so that it detects GNU CPP using cpplib
and defines GnuCppLib so that cf code can query it plus added #ifdef
GnuCppLib to site.def so that it does not try to do < > token pasting for
includes (attached in the tar file).
But cpp does not honour whitespace, which is a bigger problem.
I've attached output of
IMAKECPP=/lib/cpp imake -Ixf4.0dir/xc/config/xc -DUseInstalled
(egcs 1.1.2, -traditional)
IMAKECPP=/usr/src/gcc-2.96/gcc/cpp imake -Ixf4.0dir/xc/config/xc -DUseInstalled
(2.96, -traditional)
and
IMAKECPP=/usr/src/gcc-2.96/gcc/cpp ./hackimake -Ixf4.0dir/xc/config/xc -DUseInstalled
(2.96, hacked imake so that it does not put in -traditional).
Without -traditional, things are worse than with -traditional, but neither
will work.
make requires tabs at the beginning of lines, which are replaced by cpplib
with spaces.
Just do the diff between the Makefiles.
Is there something that can be done about it, or does imake work purely by
luck on all platforms using undefined cpp behaviour?
Jakub
imake-cpp.tar.gz