[flang-commits] [flang] [flang][Driver] Remove check for pic/pie settings without driver flags (PR #143530)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Tue Jun 10 06:20:49 PDT 2025


https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/143530

The default relocation model for aarch64 seems to be "static", but the pic-flags.f90 test was expecting both pic and pie settings.

>From 681c3877d81de3285d4afb1fffbc3e8514831a7b Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Wed, 28 May 2025 16:02:05 -0500
Subject: [PATCH] [flang][Driver] Remove check for pic/pie settings without
 driver flags

The default relocation model for aarch64 seems to be "static", but the
pic-flags.f90 test was expecting both pic and pie settings.
---
 flang/test/Driver/pic-flags.f90 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/flang/test/Driver/pic-flags.f90 b/flang/test/Driver/pic-flags.f90
index cb62d353cc18c..d63a69c913fa1 100644
--- a/flang/test/Driver/pic-flags.f90
+++ b/flang/test/Driver/pic-flags.f90
@@ -1,6 +1,5 @@
 ! RUN: %if aarch64-registered-target %{ %flang -v -S -emit-llvm -o - %s --target=aarch64-linux-gnu -fno-pie 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-STATIC,CHECK-STATIC-IR %}
 
-! RUN: %if aarch64-registered-target %{ %flang -v -S -emit-llvm -o - %s --target=aarch64-linux-gnu 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-PIE-LEVEL2,CHECK-PIE-LEVEL2-IR %}
 ! RUN: %if aarch64-registered-target %{ %flang -v -S -emit-llvm -o - %s --target=aarch64-linux-gnu -fpie 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-PIE-LEVEL1,CHECK-PIE-LEVEL1-IR %}
 ! RUN: %if aarch64-registered-target %{ %flang -v -S -emit-llvm -o - %s --target=aarch64-linux-gnu -fPIE 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-PIE-LEVEL2,CHECK-PIE-LEVEL2-IR %}
 



More information about the flang-commits mailing list