[all-commits] [llvm/llvm-project] 1b275a: [flang] -fno-integrated-as: set DisableIntegratedA...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Apr 13 10:22:31 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1b275a177fe7c2f74c3575bce2932ba37086a507
https://github.com/llvm/llvm-project/commit/1b275a177fe7c2f74c3575bce2932ba37086a507
Author: Fangrui Song <i at maskray.me>
Date: 2026-04-13 (Mon, 13 Apr 2026)
Changed paths:
M clang/include/clang/Options/Options.td
M clang/lib/Driver/ToolChains/Flang.cpp
M flang/include/flang/Frontend/CodeGenOptions.def
M flang/lib/Frontend/CompilerInstance.cpp
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/test/Driver/fintegrated-as.f90
Log Message:
-----------
[flang] -fno-integrated-as: set DisableIntegratedAS (#191346)
https://reviews.llvm.org/D124669 added -fno-integrated-as driver option
but not the fc1 option.
As a result, the backend kept MCAsmInfo::useIntegratedAssembler() set
and emitted LLVM-only directives such as `.prefalign`
(https://github.com/llvm/llvm-project/pull/155529), which GNU as
rejects:
```
a.s: Assembler messages:
a.s: Error: unknown pseudo-op: `.prefalign'
```
Follow clang and introduce fc1 -no-integrated-as to set
`CodeGenOpts.DisableIntegratedAS` and
llvm::TargetOptions::DisableIntegratedAS.
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