Re: RFC: PATCH to correct the scopes of various types

2012-05-25 Thread H.J. Lu
On Wed, May 2, 2012 at 1:08 PM, Jason Merrill ja...@redhat.com wrote: I've been working on a patch to split out the DWARF debug info for COMDAT functions into COMDAT CUs to go in the same group.  One problem I ran into was that modified versions of function-local types (pointers, cv-qualified

RFC: PATCH to correct the scopes of various types

2012-05-02 Thread Jason Merrill
I've been working on a patch to split out the DWARF debug info for COMDAT functions into COMDAT CUs to go in the same group. One problem I ran into was that modified versions of function-local types (pointers, cv-qualified variants, etc) were ending up at global scope. Separately, Tom Tromey

Re: RFC: PATCH to correct the scopes of various types

2012-05-02 Thread Richard Henderson
On 05/02/2012 01:08 PM, Jason Merrill wrote: * dwarf2out.c (modified_type_die): Use scope_die_for. (gen_type_die_with_usage, dwarf2out_finish): Likewise. (uses_local_type_r, uses_local_type): New. (scope_die_for): Keep a type that uses a local type in local scope.