[flang-commits] [flang] [Flang][OpenMP] Fix run line w/ use mod_lib (PR #123762)

Jan Patrick Lehr via flang-commits flang-commits at lists.llvm.org
Tue Jan 21 07:10:24 PST 2025


https://github.com/jplehr created https://github.com/llvm/llvm-project/pull/123762

After the crude workaround in https://github.com/llvm/llvm-project/pull/123666, @mjklemm suggested this change instead to address the issue.
Local testing did not show errors, so I'm inclined to land it and see what the buildbots think.

>From 549f111e06e0fcffa38ad3d0cd38b9fa54fc8e3e Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Tue, 21 Jan 2025 09:00:41 -0600
Subject: [PATCH] [Flang][OpenMP] Fix run line w/ use mod_lib

---
 flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90 b/flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90
index 90158a61f75039..45b3aa8ee77f91 100644
--- a/flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90
+++ b/flang/test/Lower/OpenMP/Todo/allocate-clause-allocator.f90
@@ -1,11 +1,10 @@
 ! REQUIRES: openmp_runtime
-! RUN: %not_todo_cmd %flang_fc1 -emit-llvm -fopenmp -fopenmp-version=51 -o - %s 2>&1 | FileCheck %s
+! RUN: %not_todo_cmd %flang_fc1 -emit-llvm %openmp_flags -fopenmp-version=51 -o - %s 2>&1 | FileCheck %s
 
 ! CHECK: not yet implemented: Unhandled clause allocate in omp.parallel
 ! CHECK: LLVM Translation failed for operation: omp.parallel
 program p
-  !use omp_lib
-  integer(8),parameter::omp_default_mem_alloc=1_8
+  use omp_lib
   integer :: x
   integer :: a
   integer :: i



More information about the flang-commits mailing list