Do away with hash table line lookup in dwarf2dbg.c
authorAlan Modra <amodra@gmail.com>
Sat, 27 Sep 2014 02:54:32 +0000 (12:24 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 27 Sep 2014 06:48:30 +0000 (16:18 +0930)
commit5f3fd8b4058b2dea8ee4d768030b1e0b13f0c9df
treeeeebb2e1e8b29fbdfc615db15abcc3bdbd2e8e39
parent730d435b384862d2c1a8f3373206685722fbb2b3
Do away with hash table line lookup in dwarf2dbg.c

Hash lookup is silly when we can attach the line table info directly
to sections instead.  Worse, hash lookup fails when we have multiple
sections with the same name.

gas/
* dwarf2dbg.c (all_segs_hash): Delete.
(get_line_subseg): Delete last_seg, last_subseg, last_line_subseg.
Retrieve line_seg for section via seg_info.
* subsegs.h (segment_info_typet): Add dwarf2_line_seg.
gas/testsuite/
* gas/elf/group2.d, * gas/elf/group2.s: New test.
* gas/elf/elf.exp: Run it.
gas/ChangeLog
gas/dwarf2dbg.c
gas/subsegs.h
gas/testsuite/ChangeLog
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/group2.d [new file with mode: 0644]
gas/testsuite/gas/elf/group2.s [new file with mode: 0644]