From d9dfec65c5be1be54c2ca95a8400d78455e725f5 Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Mon, 24 Feb 2020 15:01:59 -0600 Subject: [PATCH] Use -mno-pcrel for tests requiring TOC. 2020-02-27 Bill Schmidt * gcc.target/powerpc/ppc64-abi-1.c: Compile with -mno-pcrel. * gcc.target/powerpc/ppc64-abi-2.c: Likewise. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f620a83223d..c7f1abd2467 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-02-27 Bill Schmidt + + * gcc.target/powerpc/ppc64-abi-1.c: Compile with -mno-pcrel. + * gcc.target/powerpc/ppc64-abi-2.c: Likewise. + 2020-02-27 Alexandre Oliva * gcc.target/aarch64/vect-mull.x (SH): Undefine. diff --git a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c index 921c46862e2..731c0d880aa 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-1.c @@ -1,6 +1,6 @@ /* { dg-do run { target { powerpc*-*-* && lp64 } } } */ /* { dg-skip-if "" { *-*-darwin* } } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -mno-pcrel" } */ typedef __builtin_va_list va_list; #define va_start(ap, arg) __builtin_va_start (ap, arg) diff --git a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c index eb1df7a2dc9..b490fc3c2fd 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc64-abi-2.c @@ -1,5 +1,5 @@ /* { dg-do run { target { { powerpc*-*-linux* && lp64 } && powerpc_altivec_ok } } } */ -/* { dg-options "-O2 -fprofile -mprofile-kernel -maltivec -mabi=altivec" } */ +/* { dg-options "-O2 -fprofile -mprofile-kernel -maltivec -mabi=altivec -mno-pcrel" } */ #include #include #include -- 2.30.2