diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2025-02-04 17:21:42 -0800 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2025-02-04 17:35:57 -0800 |
commit | e41a5a2a0832509fa1c0b7cab0c8001fadbd23d4 (patch) | |
tree | fd3dcb81cce92692a397e1365eb81d25f15701ff /gcc/fortran/trans-openmp.cc | |
parent | f2a8f3c364a0d196efb0687ea421190b46d041d5 (diff) | |
download | gcc-e41a5a2a0832509fa1c0b7cab0c8001fadbd23d4.zip gcc-e41a5a2a0832509fa1c0b7cab0c8001fadbd23d4.tar.gz gcc-e41a5a2a0832509fa1c0b7cab0c8001fadbd23d4.tar.bz2 |
Fortran: Fix PR 47485.
The -MT and -MQ options should replace the default target in the
generated dependency file. deps_add_target needs to be called before
cpp_read_main_file, otherwise the original object name is added.
Contributed by Vincent Vanlaer <vincenttc@volkihar.be>
PR fortran/47485
gcc/fortran/ChangeLog:
* cpp.cc: fix -MT/-MQ adding additional target instead of
replacing the default.
gcc/testsuite/ChangeLog:
* gfortran.dg/dependency_generation_1.f90: New test.
Signed-off-by: Vincent Vanlaer <vincenttc@volkihar.be>
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions