[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] gcc 4.2.2 compile error



In file included from tm.h:14,
                 from ../../gcc-4.2.2/gcc/genconstants.c:31:
../../gcc-4.2.2/gcc/config/m68k/mint.h:133: parse error before `('
../../gcc-4.2.2/gcc/config/m68k/mint.h:133: warning: type defaults to
`int' in declaration of `gen_rtx_REG'
../../gcc-4.2.2/gcc/config/m68k/mint.h:133: warning: function
declaration isn't a prototype

The failing line is the second one :

#define FUNCTION_VALUEX(MODE) \
  gen_rtx_REG ((MODE), (TARGET_68881 && FLOAT_MODE_P (MODE) ? 16 : 0))

It looks like there is something after the trailing \ then the second line does not belong to the macro. Most of the time, this problem occurs on UNIX when compiling MS-DOS files ended with CR+LF...

Damn, I'm the culprit !
In my GCC patch, these two lines are terminated with CR+LF (and only them !).

I've just fixed that and uploaded it again.
http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/gcc-4.2.2-mint-20071212.diff.bz2

Thank you for reporting this error !

--
Vincent