[PATCH 3/3] MIPS: fix compact-branches test FAIL for PIC default configuration
authorYunQiang Su <yunqiang.su@cipunited.com>
Tue, 16 Feb 2021 18:37:21 +0000 (11:37 -0700)
committerJeff Law <law@redhat.com>
Tue, 16 Feb 2021 18:37:21 +0000 (11:37 -0700)
gcc/testsuite

* gcc.target/mips/compact-branches-5.c: Force -fno-PIC.
* gcc.target/mips/compact-branches-6.c: Force -fno-PIC.

gcc/testsuite/gcc.target/mips/compact-branches-5.c
gcc/testsuite/gcc.target/mips/compact-branches-6.c

index 90d312c..0189635 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-mno-abicalls -mcompact-branches=never isa_rev>=6" } */
+/* { dg-options "-mno-abicalls -fno-PIC -mcompact-branches=never isa_rev>=6" } */
 void bar (int);
 
 void
index dd35a55..36180b0 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-mno-abicalls -mcompact-branches=optimal isa_rev>=6" } */
+/* { dg-options "-mno-abicalls -fno-PIC -mcompact-branches=optimal isa_rev>=6" } */
 void bar (int);
 
 void