public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch, testsuite, mips] Fix gcc.dg/torture/mips-sdata-1.c
@ 2012-11-05 19:19 Steve Ellcey 
  2012-11-05 20:30 ` Richard Sandiford
  0 siblings, 1 reply; 12+ messages in thread
From: Steve Ellcey  @ 2012-11-05 19:19 UTC (permalink / raw)
  To: gcc-patches

The test gcc.dg/torture/mips-sdata-1.c fails when compiled with
-fno-fat-lto-objects because when that option is used no assembly code
is output and thus the scan does not find the '.sdata' line.

Checked with the mips-mti-elf target.  OK to checkin?

Steve Ellcey
sellcey@mips.com

2012-11-05  Steve Ellcey  <sellcey@mips.com>

	* gcc.dg/torture/mips-sdata-1.c: Skip on -fno-fat-lto-objects.


diff --git a/gcc/testsuite/gcc.dg/torture/mips-sdata-1.c b/gcc/testsuite/gcc.dg/torture/mips-sdata-1.c
index 8ffd4d8..53c9e4f 100644
--- a/gcc/testsuite/gcc.dg/torture/mips-sdata-1.c
+++ b/gcc/testsuite/gcc.dg/torture/mips-sdata-1.c
@@ -1,6 +1,7 @@
 /* Check that sdata-accesses are applied regardless of size or ABI.  */
 /* { dg-options -mexplicit-relocs } */
 /* { dg-do compile { target mips*-*-elf* } } */
+/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
 
 struct s { int x[4]; };
 struct s my_struct __attribute__((__section__(".sdata")));

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

end of thread, other threads:[~2012-11-06 21:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-05 19:19 [patch, testsuite, mips] Fix gcc.dg/torture/mips-sdata-1.c Steve Ellcey 
2012-11-05 20:30 ` Richard Sandiford
2012-11-05 20:39   ` Richard Sandiford
2012-11-05 21:18     ` Steve Ellcey
2012-11-05 21:28       ` Richard Sandiford
2012-11-05 21:40         ` Steve Ellcey
2012-11-05 22:47           ` Steve Ellcey
2012-11-05 22:55             ` Richard Sandiford
2012-11-05 23:03               ` Steve Ellcey
2012-11-05 23:22                 ` Richard Sandiford
2012-11-06  0:20                   ` Steve Ellcey
2012-11-06 21:43                   ` Steve Ellcey

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