From 0ffcd243a42bff13966e455582d2db6c337628a2 Mon Sep 17 00:00:00 2001 From: Mariya Podchishchaeva Date: Tue, 22 Nov 2022 11:44:54 -0500 Subject: [PATCH] [Driver][Test] Fix pic.c when CLANG_DEFAULT_PIE_ON_LINUX set to OFF --- clang/test/Driver/pic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/test/Driver/pic.c b/clang/test/Driver/pic.c index 153437d..b05f363 100644 --- a/clang/test/Driver/pic.c +++ b/clang/test/Driver/pic.c @@ -319,11 +319,11 @@ // RUN: %clang -fPIC -c %s -target armv7-pc-windows-gnu -### 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-NO-PIC -// RUN: %clang -c --target=s390x-linux-gnu -mno-pic-data-is-text-relative %s \ +// RUN: %clang -fpic -c --target=s390x-linux-gnu -mno-pic-data-is-text-relative %s \ // RUN: -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIC-DATA-TEXT-REL -// RUN: %clang -c --target=s390x-linux-gnu -mpic-data-is-text-relative %s -### \ +// RUN: %clang -fpic -c --target=s390x-linux-gnu -mpic-data-is-text-relative %s -### \ // RUN: 2>&1 | FileCheck %s --check-prefix=CHECK-PIC-DATA-TEXT-REL -// RUN: %clang -c --target=arm-arm-none-eabi -mno-pic-data-is-text-relative %s \ +// RUN: %clang -fpic -c --target=arm-arm-none-eabi -mno-pic-data-is-text-relative %s \ // RUN: -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIC-DATA-TEXT-REL-NON-SYSTEMZ -// RUN: %clang -c --target=arm-arm-none-eabi -mpic-data-is-text-relative %s \ +// RUN: %clang -fpic -c --target=arm-arm-none-eabi -mpic-data-is-text-relative %s \ // RUN: -### 2>&1 | FileCheck %s --check-prefix=CHECK-PIC-DATA-TEXT-REL-NON-SYSTEMZ -- 2.7.4