[flang-commits] [flang] [flang] To fix LIT test that AIX does not emit comdat. (PR #214950)

Daniel Chen via flang-commits flang-commits at lists.llvm.org
Sat Aug 8 03:30:30 PDT 2026


https://github.com/DanielCChen created https://github.com/llvm/llvm-project/pull/214950

AIX uses XCOFF and does not emit COFF COMDAT.

>From d0534aebf7907c09dcbce90ba1787c1eda6f6ed2 Mon Sep 17 00:00:00 2001
From: Daniel Chen <cdchen at ca.ibm.com>
Date: Sat, 8 Aug 2026 06:27:23 -0400
Subject: [PATCH] To fix LIT test that AIX does not emit comdat.

---
 flang/test/Lower/MIF/coarray_dealloc_not_alloc.f90 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/test/Lower/MIF/coarray_dealloc_not_alloc.f90 b/flang/test/Lower/MIF/coarray_dealloc_not_alloc.f90
index d00c46fd89315..f5c98a7ae2d87 100644
--- a/flang/test/Lower/MIF/coarray_dealloc_not_alloc.f90
+++ b/flang/test/Lower/MIF/coarray_dealloc_not_alloc.f90
@@ -1,6 +1,6 @@
 ! RUN: %flang_fc1 -emit-llvm -fcoarray %s -o - 2>&1 | FileCheck %s --check-prefix=LLVM
 
-! LLVM: @_QFB1Ekk_coarray_handle = linkonce global { ptr, i64, i32, i8, i8, i8, i8, ptr, [1 x i64] } { ptr null, i64 40, i32 20240719, i8 0, i8 42, i8 0, i8 1, ptr @_QMprifEXdtXprif_coarray_handle, [1 x i64] zeroinitializer }, comdat
+! LLVM: @_QFB1Ekk_coarray_handle = linkonce global { ptr, i64, i32, i8, i8, i8, i8, ptr, [1 x i64] } { ptr null, i64 40, i32 20240719, i8 0, i8 42, i8 0, i8 1, ptr @_QMprifEXdtXprif_coarray_handle, [1 x i64] zeroinitializer }{{(, comdat)?}}
 
 ! LLVM-LABEL:  @_QQmain()
 ! LLVM:       call void @llvm.memcpy.p0.p0.i32(ptr align 8 %[[VAL_1:.*]], ptr align 8 @_QFB1Ekk_coarray_handle, i32 40, i1 false)



More information about the flang-commits mailing list