Hi, global-used-types.c in gcc/testsuite/gcc.dg/debug/dwarf2 only specifies -g in dg-options. For a target that is not configured to generate dwarf-2 by default, the test fails looking for specific DWARF strings in the generated assembly.
The patch below changes dg-options to -gdwarf-2. Can someone apply if it is ok? Regards Senthil 2013-03-27 Senthil Kumar Selvaraj <senthil_kumar.selva...@atmel.com> * gcc.dg/debug/dwarf2/global-used-types.c: Specify -gdwarf-2 in dg-options diff --git gcc/testsuite/gcc.dg/debug/dwarf2/global-used-types.c gcc/testsuite/gcc.dg/debug/dwarf2/global-used-types.c index 54fa58a..03c6ede 100644 --- gcc/testsuite/gcc.dg/debug/dwarf2/global-used-types.c +++ gcc/testsuite/gcc.dg/debug/dwarf2/global-used-types.c @@ -1,6 +1,6 @@ /* Contributed by Dodji Seketeli <do...@redhat.com> - { dg-options "-g -dA -fno-merge-debug-strings" } + { dg-options "-gdwarf-2 -dA -fno-merge-debug-strings" } { dg-do compile } { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumeration_type" 1 } } { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumerator" 2 } }