From: Yao Qi Date: Thu, 24 Apr 2014 10:46:22 +0000 (+0800) Subject: Remove unused labels in dwarf assembler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c2d33e7a2309f4cec2a1a850c53e8f6e147e5fd;p=binutils-gdb.git Remove unused labels in dwarf assembler I happen to see that 'double_label' isn't used in dwz.exp dwarf assembler. Similarly, partial_label and double_label aren't used in dwzbuildid.exp. This patch is to remove them. gdb/testsuite: 2014-04-25 Yao Qi * gdb.dwarf2/dwz.exp (Dwarf::assemble): Remove unused double_label. * gdb.dwarf2/dwzbuildid.exp (Dwarf::assemble): Remove partial_label and double_label. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3c730102359..0cd9d83d86a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2014-04-25 Yao Qi + + * gdb.dwarf2/dwz.exp (Dwarf::assemble): Remove unused + double_label. + * gdb.dwarf2/dwzbuildid.exp (Dwarf::assemble): Remove + partial_label and double_label. + 2014-04-24 David Blaikie * gdb.python/lib-types.exp: Fix test and xfail under gcc due to gcc/55641. diff --git a/gdb/testsuite/gdb.dwarf2/dwz.exp b/gdb/testsuite/gdb.dwarf2/dwz.exp index 7f996b34409..aa0ea7d66da 100644 --- a/gdb/testsuite/gdb.dwarf2/dwz.exp +++ b/gdb/testsuite/gdb.dwarf2/dwz.exp @@ -25,7 +25,7 @@ standard_testfile main.c dwz.S # Create the DWARF. set asm_file [standard_output_file $srcfile2] Dwarf::assemble $asm_file { - declare_labels partial_label double_label int_label int_label2 + declare_labels partial_label int_label int_label2 extern main diff --git a/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp b/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp index 586136218ed..af8e5d37809 100644 --- a/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp +++ b/gdb/testsuite/gdb.dwarf2/dwzbuildid.exp @@ -62,7 +62,7 @@ proc write_dwarf_file {filename buildid {value 99}} { set asm_file [standard_output_file $filename] Dwarf::assemble $asm_file { - declare_labels partial_label double_label int_label int_label2 + declare_labels int_label int_label2 upvar buildid buildid upvar value value