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

Reply via email to