From 59810d826e26617f8cc7ec5ec53056ab7a26237b Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Thu, 12 Oct 2006 16:52:33 +0000 Subject: [PATCH] re PR testsuite/29093 (gcc.dg/debug/dwarf2/dwarf-file1.c fails on targets that have .loc) PR testsuite/29093 * gcc.dg/debug/dwarf2/dwarf-file1.c: Check for ".file". From-SVN: r117667 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 500edd2acf1..b13454eb6ca 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-10-12 Steve Ellcey + + PR testsuite/29093 + * gcc.dg/debug/dwarf2/dwarf-file1.c: Check for ".file". + 2006-10-12 Jakub Jelinek PR preprocessor/28709 diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c index 96a2b5ab2f1..c68dfe436e3 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c @@ -1,5 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -gdwarf-2 -dA" } */ -/* { dg-final { scan-assembler "File Entry:" } } */ -/* Verify that a file entry is output for this file. */ +/* { dg-final { scan-assembler "File Entry:|.file" } } */ +/* Verify that a file entry is output for this file. Only systems that + do not define HAVE_AS_DWARF2_DEBUG_LINE will put out "File Entry:", + but systems that do define HAVE_AS_DWARF2_DEBUG_LINE will put out a + ".file" so we check for either. */ + int bar = 3;