On Sat, Jul 21, 2007 at 07:08:27PM -0400, Peter Tanski wrote:
> 
> That seems to be what it is: the preprocessor for gcc 3.4.5 (Mingw  
> special) inserts a space:
> > cat TstFile.pp
> 
> #define INCLUDE #include
> INCLUDE "HsVersions.h"
> 
> > gcc -E -u -P TstFile.pp
>  #include "HsVersions.h
> ^

Is that the exact commandline? It doesn't work at all here:

$ gcc -E -u -P q.pp
gcc: installation problem, cannot exec 'gpcpp': No such file or directory

> If it isn't apparent from the email, it does insert a space; it does  
> recognise the --traditional flag but that makes no difference (it  

-traditional is exactly what makes the difference here:

$ c:/mingw/bin/gcc -E -undef -P -x c q.pp 
 #include "HsVersions.h"
$ c:/mingw/bin/gcc -E -traditional -undef -P -x c q.pp 
#include "HsVersions.h"

> I think gcc-3.4.5's preprocessor is reading  

I have

$ c:/mingw/bin/gcc --version
gcc.exe (GCC) 3.4.2 (mingw-special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and get the same behaviour with

$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Thanks
Ian

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to