aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorYunQiang Su <yunqiang.su@cipunited.com>2021-02-16 11:37:21 -0700
committerJeff Law <law@redhat.com>2021-02-16 11:37:21 -0700
commit5d5e4f6ec64de3ceee753c0d221576145fd898dd (patch)
tree6d1d2b7dc721596e920509b5963441e1b5787b6e /gcc
parent799478b8914c438f7a33eb319efbae69c81f2111 (diff)
downloadgcc-5d5e4f6ec64de3ceee753c0d221576145fd898dd.zip
gcc-5d5e4f6ec64de3ceee753c0d221576145fd898dd.tar.gz
gcc-5d5e4f6ec64de3ceee753c0d221576145fd898dd.tar.bz2
[PATCH 3/3] MIPS: fix compact-branches test FAIL for PIC default configuration
gcc/testsuite * gcc.target/mips/compact-branches-5.c: Force -fno-PIC. * gcc.target/mips/compact-branches-6.c: Force -fno-PIC.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/mips/compact-branches-5.c2
-rw-r--r--gcc/testsuite/gcc.target/mips/compact-branches-6.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/mips/compact-branches-5.c b/gcc/testsuite/gcc.target/mips/compact-branches-5.c
index 90d312c..0189635 100644
--- a/gcc/testsuite/gcc.target/mips/compact-branches-5.c
+++ b/gcc/testsuite/gcc.target/mips/compact-branches-5.c
@@ -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
diff --git a/gcc/testsuite/gcc.target/mips/compact-branches-6.c b/gcc/testsuite/gcc.target/mips/compact-branches-6.c
index dd35a55..36180b0 100644
--- a/gcc/testsuite/gcc.target/mips/compact-branches-6.c
+++ b/gcc/testsuite/gcc.target/mips/compact-branches-6.c
@@ -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