This is the mail archive of the gcc-bugs@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]

Still having major problems with cpplib and imake


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


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