public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH,testsuite] fix gcc.dg/sibcall-{3,4}.c and -mlongcall on ppc
@ 2007-07-25 20:29 Nathan Froyd
  2007-07-25 22:53 ` Janis Johnson
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Froyd @ 2007-07-25 20:29 UTC (permalink / raw)
  To: gcc-patches

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

The attached patch disables gcc.dg/sibcall-{3,4}.c on PPC targets when
the -mlongcall flag is passed.  This flag disables sibling calls,
resulting in test failures.

Tested on powerpc-wrs-vxworks with and without -mlongcall.  OK to
commit?

-Nathan

2007-07-25  Nathan Froyd  <froydnj@codesourcery.com>

	gcc/testsuite/
	* gcc.dg/sibcall-3.c: Skip on PowerPC targets when -mlongcall.
	* gcc.dg/sibcall-4.c: Likewise.


[-- Attachment #2: ppc-sibcalls.patch --]
[-- Type: text/plain, Size: 1466 bytes --]

Index: gcc/testsuite/gcc.dg/sibcall-3.c
===================================================================
--- gcc/testsuite/gcc.dg/sibcall-3.c	(revision 177249)
+++ gcc/testsuite/gcc.dg/sibcall-3.c	(working copy)
@@ -6,6 +6,8 @@
    Contributed by Hans-Peter Nilsson  <hp@bitrange.com>  */
 
 /* { dg-do run { xfail arc-*-* avr-*-* c4x-*-* cris-*-* h8300-*-* hppa*64*-*-* m32r-*-* m68hc1?-*-* m681?-*-* m680*-*-* m68k-*-* mcore-*-* mn10300-*-* xstormy16-*-* v850*-*-* vax-*-* xtensa-*-* } } */
+/* -mlongcall disables sibcall patterns.  */
+/* { dg-skip-if "" { powerpc*-*-* } { "-mlongcall" } { "" } } */
 /* { dg-options "-O2 -foptimize-sibling-calls" } */
 
 /* The option -foptimize-sibling-calls is the default, but serves as
Index: gcc/testsuite/gcc.dg/sibcall-4.c
===================================================================
--- gcc/testsuite/gcc.dg/sibcall-4.c	(revision 177249)
+++ gcc/testsuite/gcc.dg/sibcall-4.c	(working copy)
@@ -6,6 +6,8 @@
    Contributed by Hans-Peter Nilsson  <hp@bitrange.com>  */
 
 /* { dg-do run { xfail arc-*-* avr-*-* c4x-*-* cris-*-* h8300-*-* hppa*64*-*-* m32r-*-* m68hc1?-*-* m681?-*-* m680*-*-* m68k-*-* mcore-*-* mn10300-*-* xstormy16-*-* v850*-*-* vax-*-* xtensa-*-* } } */
+/* -mlongcall disables sibcall patterns.  */
+/* { dg-skip-if "" { powerpc*-*-* } { "-mlongcall" } { "" } } */
 /* { dg-options "-O2 -foptimize-sibling-calls" } */
 
 /* The option -foptimize-sibling-calls is the default, but serves as

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

* Re: [PATCH,testsuite] fix gcc.dg/sibcall-{3,4}.c and -mlongcall on  ppc
  2007-07-25 20:29 [PATCH,testsuite] fix gcc.dg/sibcall-{3,4}.c and -mlongcall on ppc Nathan Froyd
@ 2007-07-25 22:53 ` Janis Johnson
  0 siblings, 0 replies; 2+ messages in thread
From: Janis Johnson @ 2007-07-25 22:53 UTC (permalink / raw)
  To: Nathan Froyd; +Cc: gcc-patches

On Wed, 2007-07-25 at 13:03 -0700, Nathan Froyd wrote:
> The attached patch disables gcc.dg/sibcall-{3,4}.c on PPC targets when
> the -mlongcall flag is passed.  This flag disables sibling calls,
> resulting in test failures.
> 
> Tested on powerpc-wrs-vxworks with and without -mlongcall.  OK to
> commit?

OK.

Janis

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

end of thread, other threads:[~2007-07-25 22:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-25 20:29 [PATCH,testsuite] fix gcc.dg/sibcall-{3,4}.c and -mlongcall on ppc Nathan Froyd
2007-07-25 22:53 ` Janis Johnson

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