This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] |
This patch fixes a couple of bugs with -gdwarf-4. One is an ICE that occurs when there's a particular kind of local typedef in a member function, and the other caused an unsatisfied reference at link time caused by moving a locally-scoped type into a type unit. Bootstrapped and tested on x86_64. OK? -cary gcc/ChangeLog: * dwarf2out.c (is_nested_in_subprogram): New function. (should_move_die_to_comdat): Use it. (copy_ancestor_tree): Don't mark DIEs here. (copy_decls_walk): Start walk from root of newly-added tree; mark DIEs here instead. gcc/testsuite/ChangeLog: * g++.dg/debug/dwarf2/dwarf4-typedef.C: New test.
Attachment:
gcc-dwarf4-100621-patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |