diff options
author | dfranke <dfranke@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-26 20:18:04 +0000 |
---|---|---|
committer | dfranke <dfranke@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-26 20:18:04 +0000 |
commit | e1dbb1395864de5e038883e7bf372d13e302d9bf (patch) | |
tree | 0aa8e33c71e988d8288dbeaedbe662e82a381bab /gcc/fortran | |
parent | c0cf4ba1d83452fd4e6c9f9d5113900900bc455a (diff) | |
download | gcc-e1dbb1395864de5e038883e7bf372d13e302d9bf.tar.gz |
2008-05-26 Daniel Franke <franke.daniel@gmail.com>
* fortran/cpp.c (cpp_define_builtins): Remove usage of TARGET_* macros,
added FIXME instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135956 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/cpp.c | 16 |
2 files changed, 20 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 9e4cb23583e..073f5428a16 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,5 +1,10 @@ 2008-05-26 Daniel Franke <franke.daniel@gmail.com> + * fortran/cpp.c (cpp_define_builtins): Remove usage of TARGET_* macros, + added FIXME instead. + +2008-05-26 Daniel Franke <franke.daniel@gmail.com> + PR fortran/18428 * lang.opt (A, C, CC, D, E, H, P, U, cpp, d, fworking-directory, imultilib, iprefix, iquote, isysroot, isystem, nocpp, nostdinc, diff --git a/gcc/fortran/cpp.c b/gcc/fortran/cpp.c index 3260d26c49a..03763428f95 100644 --- a/gcc/fortran/cpp.c +++ b/gcc/fortran/cpp.c @@ -9,6 +9,7 @@ #include "options.h" #include "gfortran.h" +#include "tm_p.h" /* Target prototypes. */ #include "target.h" #include "toplev.h" #include "diagnostic.h" @@ -218,9 +219,22 @@ cpp_define_builtins (cpp_reader *pfile) # define builtin_define_std(TXT) # define builtin_assert(TXT) cpp_assert (pfile, TXT) + /* FIXME: Pandora's Box + Using the macros below results in multiple breakages: + - mingw will fail to compile this file as dependent macros + assume to be used in c-cppbuiltin.c only. Further, they use + flags only valid/defined in C (same as noted above). + [config/i386/mingw32.h, config/i386/cygming.h] + - other platforms (not as popular) break similarly + [grep for 'builtin_define_with_int_value' in config/*] + - darwin will compile but not link + (Makefile.in needs to link f951 with some target library or + object files. Adding $(C_TARGET_OBJS) to $(F951_OBJS) does + seemingly not fix the problem.) + TARGET_CPU_CPP_BUILTINS (); TARGET_OS_CPP_BUILTINS (); - TARGET_OBJFMT_CPP_BUILTINS (); + TARGET_OBJFMT_CPP_BUILTINS (); */ #undef builtin_define #undef builtin_define_std |