diff mbox series

[testsuite] Tweak gcc.target/sparc/struct-ret-check-1.c

Message ID 3027533.OBm7Y96fJ0@polaris
State New
Headers show
Series [testsuite] Tweak gcc.target/sparc/struct-ret-check-1.c | expand

Commit Message

Eric Botcazou Feb. 15, 2019, 10:56 a.m. UTC
It cannot pass in PIE mode.

Tested on SPARC64/Linux, applied on all active branches.


2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.target/sparc/struct-ret-check-1.c: Add -fno-pie option.

Comments

Eric Botcazou Feb. 16, 2019, 2:41 p.m. UTC | #1
> 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  <ebotcazou@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.
diff mbox series

Patch

Index: gcc.target/sparc/struct-ret-check-1.c
===================================================================
--- gcc.target/sparc/struct-ret-check-1.c	(revision 268849)
+++ gcc.target/sparc/struct-ret-check-1.c	(working copy)
@@ -7,7 +7,7 @@ 
 
 /* Origin: Carlos O'Donell <carlos@codesourcery.com> */
 /* { dg-do run { target sparc*-*-solaris* sparc*-*-linux* sparc*-*-*bsd* } } */
-/* { dg-options "-mstd-struct-return" } */
+/* { dg-options "-mstd-struct-return -fno-pie" } */
 /* { dg-require-effective-target ilp32 } */
 #include <stdio.h>
 #include <stdlib.h>