[patch] fix recent breakage of darwin, mingw and others

Andreas Tobler andreast-list@fgznet.ch
Mon May 26 20:18:00 GMT 2008


newnews@gmx.de wrote:
> Yesterday's patch to move gfortran to use libcpp uncovered some problems with 
> different target configurations. This patch removes the usage of the culprit 
> TARGET_* macros as the macros they define are nice-to-have during compilation 
> of fortran-sources but (probably) not essential. 
> 
> 
> 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
> 
> 	* fortran/cpp.c (cpp_define_builtins): Remove usage of TARGET_* macros,
> 	added FIXME instead.
> 
> 
> Tested on i686-pc-linux-gnu by myself, on x86_64-pc-mingw32 by Kai Tietz and 
> on Dominique Dhumieres currently tests it on i686-darwin.
> 
> Assuming no further problems, ok to commit?

This line causes some problems:

+       [grep for 'builtin_define_with_int_value' in config/*]

the /* is seen as error in the comment.

Removing the trailing * helps compiling this part.
But it fails later with undef symbols:
_darwin_register_objc_includes etc.

Is there another patch missing?

Thanks,
Andreas





More information about the Fortran mailing list