From: YunQiang Su Date: Tue, 16 Feb 2021 18:37:21 +0000 (-0700) Subject: [PATCH 3/3] MIPS: fix compact-branches test FAIL for PIC default configuration X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d5e4f6ec64de3ceee753c0d221576145fd898dd;p=gcc.git [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. --- 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