Still having major problems with cpplib and imake

Jakub Jelinek jakub@redhat.com
Fri May 12 00:54:00 GMT 2000


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imake-cpp.tar.gz
Type: application/x-gzip
Size: 8199 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000512/91abb491/attachment.bin>


More information about the Gcc-bugs mailing list