[all-commits] [llvm/llvm-project] 92d2e1: [flang][driver] do not crash when fc1 process mult...
jeanPerier via All-commits
all-commits at lists.llvm.org
Fri May 9 01:37:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 92d2e13b99ba1770e6307af7ed7ee877bfabde8c
https://github.com/llvm/llvm-project/commit/92d2e13b99ba1770e6307af7ed7ee877bfabde8c
Author: jeanPerier <jperier at nvidia.com>
Date: 2025-05-09 (Fri, 09 May 2025)
Changed paths:
M flang/include/flang/Frontend/CompilerInstance.h
M flang/lib/Frontend/CompilerInstance.cpp
M flang/lib/Frontend/FrontendAction.cpp
M flang/lib/Frontend/FrontendActions.cpp
A flang/test/Driver/multiple-fc1-input.f90
Log Message:
-----------
[flang][driver] do not crash when fc1 process multiple files (#138875)
This is a fix for the issue https://github.com/llvm/llvm-project/issues/137126
that turned out to be a driver issue.
FrontendActions has a loop to process multiple input files and `flang -fc1`
accept multiple files, but the semantic, lowering, and llvm codegen
actions were not re-entrant, and crash or weird behaviors occurred
when processing multiple files with `-fc1`.
This patch makes the actions reentrant by cleaning-up the contexts/modules
if needed on entry.
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