From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97678786210581.tru64-unix-managers.marc@archive.invalid> From: Matti Saarinen Date: Thu, 14 Dec 2000 09:56:52 +0000 To: tru64-unix-managers Subject: DTK C compiler (V6.3-126) with -E switch produces incorrect output X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97678786210581 Hello I tested on 4.0G the Compaq C compiler included in latest DTK and noticed that its -E switch does not work correctly. An example: % cat a.c #ifndef LIB_X11_LIB #define LIB_X11_LIB -lX11 #endif configure___ LIBX=LIB_X11_LIB % cc -E a.c # 1 "a.c" configure___ LIBX= - lX11 /\ || There is an extra white space before 'l'. % cc -nodtk -E a.c # 1 "a.c" configure___ LIBX=-lX11 I read the documentation and I did not find any mentions about cc -E being depreceated or the behaviour of the option being chaged. Therefore I think this is a bug. Of course I can avoid the problem by using cpp or 'cc -E -nodtk' while using preprocessor but that is not a good solution. For example the configure scripts produced by GNU autoconf use 'cc -E' as preprocessor by default. -- - Matti -