public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite] Tweak gcc.target/sparc/struct-ret-check-1.c
@ 2019-02-15 10:56 Eric Botcazou
  2019-02-16 14:41 ` Eric Botcazou
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Botcazou @ 2019-02-15 10:56 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

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.

-- 
Eric Botcazou

[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 569 bytes --]

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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [testsuite] Tweak gcc.target/sparc/struct-ret-check-1.c
  2019-02-15 10:56 [testsuite] Tweak gcc.target/sparc/struct-ret-check-1.c Eric Botcazou
@ 2019-02-16 14:41 ` Eric Botcazou
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Botcazou @ 2019-02-16 14:41 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 450 bytes --]

> 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.

-- 
Eric Botcazou

[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 1905 bytes --]

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*-*-* } } } */
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-16 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-15 10:56 [testsuite] Tweak gcc.target/sparc/struct-ret-check-1.c Eric Botcazou
2019-02-16 14:41 ` Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).