Open Quuxplusone opened 3 years ago
Bugzilla Link | PR52097 |
Status | NEW |
Importance | P enhancement |
Reported by | Peter Steinfeld (psteinfeld@nvidia.com) |
Reported on | 2021-10-06 11:36:09 -0700 |
Last modified on | 2021-10-07 13:56:32 -0700 |
Version | unspecified |
Hardware | PC Windows NT |
CC | andrzej.warzynski@gmail.com, David.Truby@arm.com, jperier@nvidia.com, kirankumartp@gmail.com, llvm-bugs@lists.llvm.org, sscalpone@nvidia.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Thank you for reporting this, Pete!
Currently, in the presence of semantic errors, the front-end driver will skip the ExecuteAction
method corresponding to your action flag. For -fdebug-dump-all
that's DebugDumpAllAction::ExecuteAction
. It is skipped, because BeginSourceFile
for this action [2] returns false when semantic errors are encountered.
This can be relaxed, see https://reviews.llvm.org/D111308. But we should be careful here. Flang lacks a central mechanism to control what happens in presence of errors. If it's implemented on an option-by-option basis, it might become hard to track/control/maintain. It would be great to have some diagnostics engine that would manage this for us. One day!
In the meantime, please try https://reviews.llvm.org/D11130. What are your thoughts?
-Andrzej
[1] https://github.com/llvm/llvm-project/blob/main/flang/lib/Frontend/FrontendActions.cpp#L184-L216 [2] https://github.com/llvm/llvm-project/blob/main/flang/lib/Frontend/FrontendActions.cpp#L39-L41
Thanks, Andrzej.
I just approved https://reviews.llvm.org/D111308.
I don't follow your reference to https://reviews.llvm.org/D11130. It doesn't seem to have anything to do with this issue. Is this the correct number?
Sorry, that was a copy&paste error, I meant https://reviews.llvm.org/D111308 instead of https://reviews.llvm.org/D11130. It's the same revision that you've just approved.
-Andrzej