Skip to content

Commit 500889f

Browse files
atanasyanMaskRay
authored andcommitted
[MIPS] Add -no-pie option to the clang driver's tests depend on it
(cherry picked from commit cedc23b)
1 parent 2fe5bf5 commit 500889f

File tree

5 files changed

+150
-148
lines changed

5 files changed

+150
-148
lines changed

clang/test/Driver/mips-cs.cpp

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// = Big-endian, hard float
66
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
7-
// RUN: --target=mips-linux-gnu \
7+
// RUN: --target=mips-linux-gnu -no-pie \
88
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
99
// RUN: | FileCheck --check-prefix=CHECK-BE-HF-32 %s
1010
// CHECK-BE-HF-32: "-internal-isystem"
@@ -32,7 +32,7 @@
3232
//
3333
// = Big-endian, hard float, uclibc
3434
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
35-
// RUN: --target=mips-linux-gnu -muclibc \
35+
// RUN: --target=mips-linux-gnu -muclibc -no-pie \
3636
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
3737
// RUN: | FileCheck --check-prefix=CHECK-BE-UC-HF-32 %s
3838
// CHECK-BE-UC-HF-32: "-internal-isystem"
@@ -61,7 +61,7 @@
6161
//
6262
// = Big-endian, hard float, mips16
6363
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
64-
// RUN: --target=mips-linux-gnu -mips16 \
64+
// RUN: --target=mips-linux-gnu -mips16 -no-pie \
6565
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
6666
// RUN: | FileCheck --check-prefix=CHECK-BE-HF-16 %s
6767
// CHECK-BE-HF-16: "-internal-isystem"
@@ -90,7 +90,7 @@
9090
//
9191
// = Big-endian, hard float, mmicromips
9292
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
93-
// RUN: --target=mips-linux-gnu -mmicromips \
93+
// RUN: --target=mips-linux-gnu -mmicromips -no-pie \
9494
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
9595
// RUN: | FileCheck --check-prefix=CHECK-BE-HF-MICRO %s
9696
// CHECK-BE-HF-MICRO: "-internal-isystem"
@@ -119,7 +119,7 @@
119119
//
120120
// = Big-endian, hard float, nan2008
121121
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
122-
// RUN: --target=mips-linux-gnu -mnan=2008 \
122+
// RUN: --target=mips-linux-gnu -mnan=2008 -no-pie \
123123
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
124124
// RUN: | FileCheck --check-prefix=CHECK-BE-HF-NAN %s
125125
// CHECK-BE-HF-NAN: "-internal-isystem"
@@ -148,7 +148,7 @@
148148
//
149149
// = Big-endian, hard float, uclibc, nan2008
150150
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
151-
// RUN: --target=mips-linux-gnu -muclibc -mnan=2008 \
151+
// RUN: --target=mips-linux-gnu -muclibc -mnan=2008 -no-pie \
152152
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
153153
// RUN: | FileCheck --check-prefix=CHECK-BE-UC-HF-NAN %s
154154
// CHECK-BE-UC-HF-NAN: "-internal-isystem"
@@ -177,7 +177,7 @@
177177
//
178178
// = Big-endian, soft float
179179
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
180-
// RUN: --target=mips-linux-gnu -msoft-float \
180+
// RUN: --target=mips-linux-gnu -msoft-float -no-pie \
181181
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
182182
// RUN: | FileCheck --check-prefix=CHECK-BE-SF-32 %s
183183
// CHECK-BE-SF-32: "-internal-isystem"
@@ -206,7 +206,7 @@
206206
//
207207
// = Big-endian, soft float, uclibc
208208
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
209-
// RUN: --target=mips-linux-gnu -muclibc -msoft-float \
209+
// RUN: --target=mips-linux-gnu -muclibc -msoft-float -no-pie \
210210
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
211211
// RUN: | FileCheck --check-prefix=CHECK-BE-UC-SF-32 %s
212212
// CHECK-BE-UC-SF-32: "-internal-isystem"
@@ -235,7 +235,7 @@
235235
//
236236
// = Big-endian, soft float, mips16
237237
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
238-
// RUN: --target=mips-linux-gnu -msoft-float -mips16 \
238+
// RUN: --target=mips-linux-gnu -msoft-float -mips16 -no-pie \
239239
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
240240
// RUN: | FileCheck --check-prefix=CHECK-BE-SF-16 %s
241241
// CHECK-BE-SF-16: "-internal-isystem"
@@ -264,7 +264,7 @@
264264
//
265265
// = Big-endian, soft float, micromips
266266
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
267-
// RUN: --target=mips-linux-gnu -msoft-float -mmicromips \
267+
// RUN: --target=mips-linux-gnu -msoft-float -mmicromips -no-pie \
268268
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
269269
// RUN: | FileCheck --check-prefix=CHECK-BE-SF-MICRO %s
270270
// CHECK-BE-SF-MICRO: "-internal-isystem"
@@ -293,7 +293,7 @@
293293
//
294294
// = Big-endian, hard float, 64-bit
295295
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
296-
// RUN: --target=mips64-linux-gnu \
296+
// RUN: --target=mips64-linux-gnu -no-pie \
297297
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
298298
// RUN: | FileCheck --check-prefix=CHECK-BE-HF-64 %s
299299
// CHECK-BE-HF-64: "-internal-isystem"
@@ -322,7 +322,7 @@
322322
//
323323
// = Big-endian, soft float, 64-bit
324324
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
325-
// RUN: --target=mips64-linux-gnu -msoft-float \
325+
// RUN: --target=mips64-linux-gnu -msoft-float -no-pie \
326326
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
327327
// RUN: | FileCheck --check-prefix=CHECK-BE-SF-64 %s
328328
// CHECK-BE-SF-64: "-internal-isystem"
@@ -351,7 +351,7 @@
351351
//
352352
// = Little-endian, hard float
353353
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
354-
// RUN: --target=mipsel-linux-gnu -mhard-float \
354+
// RUN: --target=mipsel-linux-gnu -mhard-float -no-pie \
355355
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
356356
// RUN: | FileCheck --check-prefix=CHECK-EL-HF-32 %s
357357
// CHECK-EL-HF-32: "-internal-isystem"
@@ -380,7 +380,7 @@
380380
//
381381
// = Little-endian, hard float, uclibc
382382
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
383-
// RUN: --target=mipsel-linux-gnu -mhard-float -muclibc \
383+
// RUN: --target=mipsel-linux-gnu -mhard-float -muclibc -no-pie \
384384
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
385385
// RUN: | FileCheck --check-prefix=CHECK-EL-UC-HF-32 %s
386386
// CHECK-EL-UC-HF-32: "-internal-isystem"
@@ -409,7 +409,7 @@
409409
//
410410
// = Little-endian, hard float, mips16
411411
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
412-
// RUN: --target=mipsel-linux-gnu -mips16 \
412+
// RUN: --target=mipsel-linux-gnu -mips16 -no-pie \
413413
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
414414
// RUN: | FileCheck --check-prefix=CHECK-EL-HF-16 %s
415415
// CHECK-EL-HF-16: "-internal-isystem"
@@ -438,7 +438,7 @@
438438
//
439439
// = Little-endian, hard float, micromips
440440
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
441-
// RUN: --target=mipsel-linux-gnu -mmicromips \
441+
// RUN: --target=mipsel-linux-gnu -mmicromips -no-pie \
442442
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
443443
// RUN: | FileCheck --check-prefix=CHECK-EL-HF-MICRO %s
444444
// CHECK-EL-HF-MICRO: "-internal-isystem"
@@ -467,7 +467,7 @@
467467
//
468468
// = Little-endian, hard float, nan2008
469469
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
470-
// RUN: --target=mipsel-linux-gnu -mnan=2008 \
470+
// RUN: --target=mipsel-linux-gnu -mnan=2008 -no-pie \
471471
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
472472
// RUN: | FileCheck --check-prefix=CHECK-EL-HF-NAN %s
473473
// CHECK-EL-HF-NAN: "-internal-isystem"
@@ -496,7 +496,7 @@
496496
//
497497
// = Little-endian, hard float, uclibc, nan2008
498498
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
499-
// RUN: --target=mipsel-linux-gnu -muclibc -mnan=2008 \
499+
// RUN: --target=mipsel-linux-gnu -muclibc -mnan=2008 -no-pie \
500500
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
501501
// RUN: | FileCheck --check-prefix=CHECK-EL-UC-HF-NAN %s
502502
// CHECK-EL-UC-HF-NAN: "-internal-isystem"
@@ -525,7 +525,7 @@
525525
//
526526
// = Little-endian, soft float
527527
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
528-
// RUN: --target=mipsel-linux-gnu -mfloat-abi=soft \
528+
// RUN: --target=mipsel-linux-gnu -mfloat-abi=soft -no-pie \
529529
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
530530
// RUN: | FileCheck --check-prefix=CHECK-EL-SF-32 %s
531531
// CHECK-EL-SF-32: "-internal-isystem"
@@ -554,7 +554,7 @@
554554
//
555555
// = Little-endian, soft float, uclibc
556556
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
557-
// RUN: --target=mipsel-linux-gnu -mfloat-abi=soft -muclibc \
557+
// RUN: --target=mipsel-linux-gnu -mfloat-abi=soft -muclibc -no-pie \
558558
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
559559
// RUN: | FileCheck --check-prefix=CHECK-EL-UC-SF-32 %s
560560
// CHECK-EL-UC-SF-32: "-internal-isystem"
@@ -583,7 +583,7 @@
583583
//
584584
// = Little-endian, soft float, mips16
585585
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
586-
// RUN: --target=mipsel-linux-gnu -mips16 -msoft-float \
586+
// RUN: --target=mipsel-linux-gnu -mips16 -msoft-float -no-pie \
587587
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
588588
// RUN: | FileCheck --check-prefix=CHECK-EL-SF-16 %s
589589
// CHECK-EL-SF-16: "-internal-isystem"
@@ -612,7 +612,7 @@
612612
//
613613
// = Little-endian, soft float, micromips
614614
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
615-
// RUN: --target=mipsel-linux-gnu -mmicromips -msoft-float \
615+
// RUN: --target=mipsel-linux-gnu -mmicromips -msoft-float -no-pie \
616616
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
617617
// RUN: | FileCheck --check-prefix=CHECK-EL-SF-MICRO %s
618618
// CHECK-EL-SF-MICRO: "-internal-isystem"
@@ -641,7 +641,7 @@
641641
//
642642
// = Little-endian, hard float, 64-bit
643643
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
644-
// RUN: --target=mips64el-linux-gnu \
644+
// RUN: --target=mips64el-linux-gnu -no-pie \
645645
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
646646
// RUN: | FileCheck --check-prefix=CHECK-EL-HF-64 %s
647647
// CHECK-EL-HF-64: "-internal-isystem"
@@ -670,7 +670,7 @@
670670
//
671671
// = Little-endian, soft float, 64-bit
672672
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
673-
// RUN: --target=mips64el-linux-gnu -msoft-float \
673+
// RUN: --target=mips64el-linux-gnu -msoft-float -no-pie \
674674
// RUN: -stdlib=libstdc++ --gcc-toolchain=%S/Inputs/mips_cs_tree \
675675
// RUN: | FileCheck --check-prefix=CHECK-EL-SF-64 %s
676676
// CHECK-EL-SF-64: "-internal-isystem"

0 commit comments

Comments
 (0)