It cannot pass in PIE mode. Tested on SPARC64/Linux, applied on all active branches.
2019-02-15 Eric Botcazou <ebotca...@adacore.com> * gcc.target/sparc/struct-ret-check-1.c: Add -fno-pie option. -- Eric Botcazou
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 <car...@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>