From 5d5e4f6ec64de3ceee753c0d221576145fd898dd Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Tue, 16 Feb 2021 11:37:21 -0700 Subject: [PATCH] [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. --- gcc/testsuite/gcc.target/mips/compact-branches-5.c | 2 +- gcc/testsuite/gcc.target/mips/compact-branches-6.c | 2 +- 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 90d312c614d..0189635bf61 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 dd35a5581bd..36180b0c76c 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 -- 2.30.2