> It cannot pass in PIE mode.
Likewise for the 3 c-c++-common/patchable_function_entry-*.c on SPARC.
Tested on x86-64/Linux and SPARC64/Linux, applied on mainline and 8 branch.
2019-02-16 Eric Botcazou <ebotca...@adacore.com>
* c-c++-common/patchable_function_entry-decl.c: Add -fno-pie on SPARC.
* c-c++-common/patchable_function_entry-default.c: Likewise.
* c-c++-common/patchable_function_entry-definition.c: Likewise.
--
Eric Botcazou
Index: c-c++-common/patchable_function_entry-decl.c
===================================================================
--- c-c++-common/patchable_function_entry-decl.c (revision 268932)
+++ c-c++-common/patchable_function_entry-decl.c (working copy)
@@ -1,5 +1,6 @@
/* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
/* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
+/* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
/* { dg-final { scan-assembler-times "nop|NOP" 2 { target { ! { alpha*-*-* } } } } } */
/* { dg-final { scan-assembler-times "bis" 2 { target alpha*-*-* } } } */
Index: c-c++-common/patchable_function_entry-default.c
===================================================================
--- c-c++-common/patchable_function_entry-default.c (revision 268932)
+++ c-c++-common/patchable_function_entry-default.c (working copy)
@@ -1,5 +1,6 @@
/* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
/* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
+/* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
/* { dg-final { scan-assembler-times "nop|NOP" 3 { target { ! { alpha*-*-* } } } } } */
/* { dg-final { scan-assembler-times "bis" 3 { target alpha*-*-* } } } */
Index: c-c++-common/patchable_function_entry-definition.c
===================================================================
--- c-c++-common/patchable_function_entry-definition.c (revision 268932)
+++ c-c++-common/patchable_function_entry-definition.c (working copy)
@@ -1,5 +1,6 @@
/* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
/* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
+/* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
/* { dg-final { scan-assembler-times "nop|NOP" 1 { target { ! { alpha*-*-* } } } } } */
/* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */