This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thu, Aug 20, 2009 at 2:08 PM, Jim Wilson<wilson@codesourcery.com> wrote: > On Wed, 2009-08-19 at 18:20 -0700, H.J. Lu wrote: >> I didn't see the problem with my icc, using the patched >> assembler. Can you provide main.s compiled by your icc? > > I tried your patch. ?Gas isn't emitting a spurious warning anymore, but > it is still emitting bogus debug info, which is what I expected. > > To see the problem, just put a breakpoint in the function > out_debug_line. ?You will see that we hit the breakpoint, even though we > should not, because the input assembly file already has a fully > populated debug_line section. > > You patch is doing something useful; it is making sure that gas picks up > up the correct (non-comdat) debug_line section. ?But it doesn't stop gas > from emitting the bogus debug info. > > Jim > Hi Jim, I think we have been generate bogus debug line info forever when .loc directive isn't used. Does it patch make any senses? Thanks. -- H.J. ---- bfd/ 2009-08-20 H.J. Lu <hongjiu.lu@intel.com> PR gas/10531 * section.c: Include "elf-bfd.h". (bfd_get_section_by_name): Don't use a section in a section group. (bfd_make_section_old_way): Likewise. binutils/testsuite/ 2009-08-20 H.J. Lu <hongjiu.lu@intel.com> PR gas/10531 * binutils-all/objdump.W: Remove bogus line debug info. gas/ 2009-08-20 H.J. Lu <hongjiu.lu@intel.com> PR gas/10531 * dwarf2dbg.c (dwarf2_loc_directive_used): New. (dwarf2_directive_loc): Set dwarf2_loc_directive_used. (dwarf2_loc_directive_used): Likewise. (dwarf2_finish): Return if -g isn't passed nor any .loc directive is used. * subsegs.c (subseg_get): Don't compare segment name. gas/testsuite/ 2009-08-20 H.J. Lu <hongjiu.lu@intel.com> PR gas/10531 * gas/elf/group2.d: New. * gas/elf/group2.s: Likewise. * gas/elf/elf.exp: Run group2.
Attachment:
binutils-group-4.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |