[all-commits] [llvm/llvm-project] f6758a: [flang] Fix -E -dM macro dumping for stdin and .f9...
ejose02 via All-commits
all-commits at lists.llvm.org
Thu May 28 04:30:43 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f6758a5664a61596ea601ea44304aab798c33962
https://github.com/llvm/llvm-project/commit/f6758a5664a61596ea601ea44304aab798c33962
Author: ejose02 <ejose at amd.com>
Date: 2026-05-28 (Thu, 28 May 2026)
Changed paths:
M flang/lib/Frontend/FrontendAction.cpp
A flang/test/Preprocessing/show-macros-stdin.f90
Log Message:
-----------
[flang] Fix -E -dM macro dumping for stdin and .f90 inputs (#200144)
Issue:
flang -E -dM does not consistently print predefined macros for stdin and
.f90 inputs, unlike expected behavior.
Root cause:
Flang only initialized predefined macros when preprocessing was implied
by -cpp or suffix-based inference (mustBePreprocessed), but not when -dM
alone requested macro dumping.
Fix:
Treat -dM as an explicit trigger to initialize macro predefinitions in,
and add a stdin regression test for flang -E -dM - < /dev/null.
Fixes #198234
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list