[all-commits] [llvm/llvm-project] 8880a6: [flang] Don't perform macro replacement unless *.F...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Feb 11 11:26:10 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8880a63a15a011b3265a184c398f2ff81570cdb6
https://github.com/llvm/llvm-project/commit/8880a63a15a011b3265a184c398f2ff81570cdb6
Author: peter klausler <pklausler at nvidia.com>
Date: 2021-02-11 (Thu, 11 Feb 2021)
Changed paths:
M flang/lib/Parser/parsing.cpp
M flang/lib/Parser/preprocessor.cpp
M flang/lib/Parser/preprocessor.h
M flang/tools/f18/f18.cpp
Log Message:
-----------
[flang] Don't perform macro replacement unless *.F, *.F90, &c.
Avoid spurious and confusing macro replacements from things like
-DPIC on Fortran source files whose suffixes indicate that preprocessing
is not expected.
Add gfortran-like "-cpp" and "-nocpp" flags to f18 to force predefinition
of macros independent of the source file suffix.
Differential Revision: https://reviews.llvm.org/D96464
More information about the All-commits
mailing list