[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 90d312c614dfc363c26170c1d55439d2715f96a8..0189635bf61205e26323fd9eea3ffb55c063c24e 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 dd35a5581bde378f3ab4943918713e2a95baf65a..36180b0c76c6872882999d22cb0a348d2e221c17 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