Remove unused labels in dwarf assembler
authorYao Qi <yao@codesourcery.com>
Thu, 24 Apr 2014 10:46:22 +0000 (18:46 +0800)
committerYao Qi <yao@codesourcery.com>
Fri, 25 Apr 2014 00:57:08 +0000 (08:57 +0800)
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  <yao@codesourcery.com>

* gdb.dwarf2/dwz.exp (Dwarf::assemble): Remove unused
double_label.
* gdb.dwarf2/dwzbuildid.exp (Dwarf::assemble): Remove
partial_label and double_label.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dwz.exp
gdb/testsuite/gdb.dwarf2/dwzbuildid.exp

index 3c73010235941ce40d38842025628ea0b91888da..0cd9d83d86abedcaa17f03bf52259559da0bdc78 100644 (file)
@@ -1,3 +1,10 @@
+2014-04-25  Yao Qi  <yao@codesourcery.com>
+
+       * 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  <dblaikie@gmail.com>
 
        * gdb.python/lib-types.exp: Fix test and xfail under gcc due to gcc/55641.
index 7f996b3440932128ea4bf3a2e9123fe707476375..aa0ea7d66dadf403d493f1d80aa6c5844a8b52e0 100644 (file)
@@ -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
 
index 586136218ed952013488d8d7c954f81f16066657..af8e5d3780978b7d66cd13b666f879558dcaba1a 100644 (file)
@@ -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