public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite] Ignore mips-tfile warning in gcc.dg/debug/pr49032.c
@ 2011-06-16 19:14 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2011-06-16 19:14 UTC (permalink / raw)
  To: gcc-patches; +Cc: Jakub Jelinek

The recent gcc.dg/debug/pr49032.c FAILs on Tru64 UNIX in a couple of
cases:

FAIL: gcc.dg/debug/pr49032.c -gcoff1 -O (test for excess errors)
FAIL: gcc.dg/debug/pr49032.c -gcoff1 -O3 (test for excess errors)
FAIL: gcc.dg/debug/pr49032.c -gcoff -O (test for excess errors)
FAIL: gcc.dg/debug/pr49032.c -gcoff -O3 (test for excess errors)
FAIL: gcc.dg/debug/pr49032.c -gcoff3 -O (test for excess errors)
FAIL: gcc.dg/debug/pr49032.c -gcoff3 -O3 (test for excess errors)

with this error:

Excess errors:
warning, s not found in original or external symbol tables, value defaults to 0

This from mips-tfile, which with -gcoff* and optimization sees this
debug info

#.def   s;      .val    s;      .scl    3;      .type   0x4;    .endef

in pr49032.s, but no definition of s.  The warning is thus completely
correct, but irrelevant.  Therefore I'm pruning it.  Unfortuantely,
there is no way to restrict this to a particular target, and dg-warning
and friends cannot restrict their operation to particular option
combinations, so this is the only way to handle this.

Tested with the appropriate runtest invocation on alpha-dec-osf5.1b and
i386-pc-solaris2.11, installed on mainline.

	Rainer


2011-06-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.dg/debug/pr49032.c: Prune mips-tfile warning.

Index: gcc/testsuite/gcc.dg/debug/pr49032.c
===================================================================
--- gcc/testsuite/gcc.dg/debug/pr49032.c	(revision 175106)
+++ gcc/testsuite/gcc.dg/debug/pr49032.c	(working copy)
@@ -1,5 +1,7 @@
 /* PR debug/49032 */
 /* { dg-do link } */
+/* Prune mips-tfile warning on alpha*-dec-osf* with -gcoff* -O*.  */
+/* { dg-prune-output "warning, s not found in .*symbol tables" } */
 
 static int s = 42;
 
-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-16 18:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 19:14 [testsuite] Ignore mips-tfile warning in gcc.dg/debug/pr49032.c Rainer Orth

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