This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Aug 2010 01:59:34 -0000
- Subject: [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
- References: <bug-31588-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #18 from jvdelisle at gcc dot gnu dot org 2010-08-08 01:59 -------
Subject: Bug 31588
Author: jvdelisle
Date: Sun Aug 8 01:59:15 2010
New Revision: 162990
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162990
Log:
2010-08-07 Daniel Franke <franke.daniel@gmail.com>
PR fortran/31588
PR fortran/43954
Backport from mainline:
* 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.
Modified:
branches/gcc-4_4-branch/gcc/fortran/ChangeLog
branches/gcc-4_4-branch/gcc/fortran/cpp.c
branches/gcc-4_4-branch/gcc/fortran/cpp.h
branches/gcc-4_4-branch/gcc/fortran/gfortran.texi
branches/gcc-4_4-branch/gcc/fortran/gfortranspec.c
branches/gcc-4_4-branch/gcc/fortran/invoke.texi
branches/gcc-4_4-branch/gcc/fortran/lang-specs.h
branches/gcc-4_4-branch/gcc/fortran/lang.opt
branches/gcc-4_4-branch/gcc/fortran/module.c
branches/gcc-4_4-branch/gcc/fortran/scanner.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31588