Maurice Lombardi wrote:
I have found a new bug. with DJGPP/ gcc-3.2.3 compiling a simple hello.pas program with options gpc hello.pas -o hello.exe -march=pentium4 -v
...
-D__pentium4 -D__pentium4__ -D__tune_pentium4__-D__SSE__ -D__MMX__ -D__SSE2__ -DMSDOS -DGO32 -DDJGPP=2 -Dunix -remap -imacros c:/djgpp/lib/gcc-lib/djgpp/3.23/djgpp.ver hello.pas -famtmpfile=c:/djgpp/tmp/ccsYIPTf.gpa -fautobuild c:/djgpp/tmp/ccKMhvDl.i GNU Pascal Compiler PreProcessor version 20050217, based on gcc-3.2.3 (80386, BSD syntax) hello.pas:0: malformed option `-D __tune_pentium4__-D__SSE__'
Missing a space. Nothing similar with -march=pentiumpro or with the previous gpc-20040218 I have checked that the specs file is not overwritten.
Spec file handling has changed in gcc-3.4. `gpc.c' is now more like `gcc.c' in 3.4 then in earlier versions. The following should correct the problem:
--- gpc.c.bb 2005-02-25 22:59:07.946190544 +0100 +++ gpc.c 2005-02-25 22:59:38.179594368 +0100 @@ -6587,8 +6587,10 @@ }
end_body = p; +#ifdef GCC_3_4 while (end_body[-1] == ' ' || end_body[-1] == '\t') end_body--; +#endif
if (have_subst && !starred) abort ();