[flang-commits] [clang] [flang] [Flang][Driver] Support for -fsplit-lto-unit option in flang driver (PR #202858)
via flang-commits
flang-commits at lists.llvm.org
Fri Jun 26 07:35:32 PDT 2026
shivaramaarao wrote:
> `flang/test/Integration/split-lto-unit-2.f90` fails on arm64 Darwin. Should this test be marked as unsupported on system-darwin?
>
> ```
> # RUN: at line 12
> /Users/leandro.lupori/home/git/flang/build/bin/flang -flto -S -o - /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Integration/split-lto-unit-2.f90 | /Users/leandro.lupori/home/git/flang/build/bin/FileCheck /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Integration/split-lto-unit-2.f90 --implicit-check-not="EnableSplitLTOUnit" --check-prefix=SPLIT1
> # executed command: /Users/leandro.lupori/home/git/flang/build/bin/flang -flto -S -o - /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Integration/split-lto-unit-2.f90
> # executed command: /Users/leandro.lupori/home/git/flang/build/bin/FileCheck /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Integration/split-lto-unit-2.f90 --implicit-check-not=EnableSplitLTOUnit --check-prefix=SPLIT1
> # .---command stderr------------
> # | /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Integration/split-lto-unit-2.f90:19:11: error: SPLIT1: expected string not found in input
> # | ! SPLIT1: !{i32 1, !"EnableSplitLTOUnit", i32 1}
> # | ^
> # | <stdin>:1:1: note: scanning from here
> # | ; ModuleID = 'FIRModule'
> # | ^
> # | <stdin>:29:6: note: possible intended match here
> # | !2 = !{i32 8, !"PIC Level", i32 2}
> # | ^
> # |
> # | Input file: <stdin>
> # | Check file: /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Integration/split-lto-unit-2.f90
> # |
> # | -dump-input=help explains the following input dump.
> # |
> # | Input was:
> # | <<<<<<
> # | 1: ; ModuleID = 'FIRModule'
> # | check:19'0 X~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
> # | 2: source_filename = "FIRModule"
> # | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> # | 3: target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32"
> # | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> # | 4: target triple = "arm64-apple-macosx26.0.0"
> # | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> # | 5:
> # | check:19'0 ~
> # | 6: define void @_QQmain() #0 {
> # | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> # | .
> # | .
> # | .
> # | 24: !llvm.ident = !{!0}
> # | check:19'0 ~~~~~~~~~~~~~~~~~~~~
> # | 25: !llvm.module.flags = !{!1, !2}
> # | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> # | 26:
> # | check:19'0 ~
> # | 27: !0 = !{!"flang version 23.0.0 (git at github.com:llvm/llvm-project.git 9b29fb8c82117f5dfae60591b568ef589b3c82d2)"}
> # | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> # | 28: !1 = !{i32 2, !"Debug Info Version", i32 3}
> # | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> # | 29: !2 = !{i32 8, !"PIC Level", i32 2}
> # | check:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> # | check:19'1 ? possible intended match
> # | >>>>>>
> # `-----------------------------
> # error: command failed with exit status: 1
> ```
Sure. I will disable this test for darwin-linux for now. Thanks for notifying.
https://github.com/llvm/llvm-project/pull/202858
More information about the flang-commits
mailing list