[all-commits] [llvm/llvm-project] f2bf44: [flang][preprocessor] Finesse disabling of functio...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Nov 13 15:25:24 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f2bf44b6ec2aa2ce014446cf3981275cb81f0de3
https://github.com/llvm/llvm-project/commit/f2bf44b6ec2aa2ce014446cf3981275cb81f0de3
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2023-11-13 (Mon, 13 Nov 2023)
Changed paths:
M flang/lib/Parser/preprocessor.cpp
M flang/lib/Semantics/check-call.cpp
A flang/test/Preprocessing/disable-expansion.F90
Log Message:
-----------
[flang][preprocessor] Finesse disabling of function-like macros (#71589)
During function-like macro expansion in a standard C/C++ preprocessor,
the macro being expanded is disabled from recursive macro expansion. The
implementation in this compiler's preprocessor, however, was too broad;
the macro expansion needs to be disabled for the "rescanning" phase
only, not for actual argument expansion.
(Also corrects an obsolete comment elsewhere that was noticed during
reduction of an original test case.)
More information about the All-commits
mailing list