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

via flang-commits flang-commits at lists.llvm.org
Sat Aug 8 17:03:48 PDT 2026


Author: Daniel Chen
Date: 2026-08-08T20:03:43-04:00
New Revision: 31749521e7b9f1cb93c9554133ab0a6d181fd8c7

URL: https://github.com/llvm/llvm-project/commit/31749521e7b9f1cb93c9554133ab0a6d181fd8c7
DIFF: https://github.com/llvm/llvm-project/commit/31749521e7b9f1cb93c9554133ab0a6d181fd8c7.diff

LOG: [flang] To fix LIT test that AIX does not emit comdat. (#214950)

PR #213890 added this new LIT test.
However, AIX uses XCOFF and does not emit COFF COMDAT.

Added: 
    

Modified: 
    flang/test/Lower/MIF/coarray_dealloc_not_alloc.f90

Removed: 
    


################################################################################
diff  --git a/flang/test/Lower/MIF/coarray_dealloc_not_alloc.f90 b/flang/test/Lower/MIF/coarray_dealloc_not_alloc.f90
index 5575a411dae14..44e31704c0055 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 %_QM__fortran_builtinsT__builtin_prif_coarray_handle_type zeroinitializer, comdat
+! LLVM: @_QFB1Ekk_coarray_handle = linkonce global %_QM__fortran_builtinsT__builtin_prif_coarray_handle_type zeroinitializer{{.*}}
 
 ! LLVM-LABEL:  @_QQmain()
 ! LLVM:  call void @_QMprifPprif_deallocate_coarray(ptr @_QFB1Ekk_coarray_handle, ptr null, ptr null, ptr null)
@@ -11,4 +11,3 @@
 allocatable :: kk(:)[:]
 endblock
 end
-


        


More information about the flang-commits mailing list