diff options
author | Daniel Franke <franke.daniel@gmail.com> | 2010-06-13 12:05:01 -0400 |
---|---|---|
committer | Daniel Franke <dfranke@gcc.gnu.org> | 2010-06-13 12:05:01 -0400 |
commit | d8ddea4044ee8212d5fe305e8e2a547700cd7b8f (patch) | |
tree | 7a5503c8e4ec3840ceca10f783c86bdc8998d3d0 /gcc/fortran/cpp.h | |
parent | 2d9ca17ba98b2fcf77b8df192634a27f8e5d4d5b (diff) | |
download | gcc-d8ddea4044ee8212d5fe305e8e2a547700cd7b8f.zip gcc-d8ddea4044ee8212d5fe305e8e2a547700cd7b8f.tar.gz gcc-d8ddea4044ee8212d5fe305e8e2a547700cd7b8f.tar.bz2 |
re PR fortran/31588 (gfortran should be able to output Makefile dependencies with -M* options)
2010-06-13 Daniel Franke <franke.daniel@gmail.com>
PR fortran/31588
PR fortran/43954
* gfortranspec.c (lang_specific_driver): Removed deprecation
warning for -M.
* lang.opt: Add options -M, -MM, -MD, -MMD, -MF, -MG, -MP, -MT, -MQ.
* lang-specs.h (CPP_FORWARD_OPTIONS): Add -M* options.
* cpp.h (gfc_cpp_makedep): New.
(gfc_cpp_add_dep): New.
(gfc_cpp_add_target): New.
* cpp.c (gfc_cpp_option): Add deps* members.
(gfc_cpp_makedep): New.
(gfc_cpp_add_dep): New.
(gfc_cpp_add_target): New.
(gfc_cpp_init_options): Initialize new options.
(gfc_cpp_handle_option): Handle new options.
(gfc_cpp_post_options): Map new options to libcpp-options.
(gfc_cpp_init): Handle deferred -MQ and -MT options.
(gfc_cpp_done): If requested, write dependencies to file.
* module.c (gfc_dump_module): Add a module filename as target.
* scanner.c (open_included_file): New parameter system; add the
included file as dependency.
(gfc_open_included_file): Add the included file as dependency.
(gfc_open_intrinsic_module): Likewise.
* invoke.texi: Removed deprecation warning for -M.
* gfortran.texi: Removed Makefile-dependencies project.
From-SVN: r160684
Diffstat (limited to 'gcc/fortran/cpp.h')
-rw-r--r-- | gcc/fortran/cpp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/fortran/cpp.h b/gcc/fortran/cpp.h index 54a899f..556eecb 100644 --- a/gcc/fortran/cpp.h +++ b/gcc/fortran/cpp.h @@ -24,6 +24,12 @@ bool gfc_cpp_enabled (void); bool gfc_cpp_preprocess_only (void); +bool gfc_cpp_makedep (void); + +void gfc_cpp_add_dep (const char *name, bool system); + +void gfc_cpp_add_target (const char *name); + const char *gfc_cpp_temporary_file (void); |