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]

Re: [PATCH] Fix flag_eliminate_dwarf2_dups/flag_eliminate_unused_debug_types clash


On Mon, Mar 03, 2003 at 10:21:47PM -0500, Daniel Jacobowitz wrote:
> On Tue, Mar 04, 2003 at 02:18:23AM +0100, Zdenek Dvorak wrote:
> > Hello,
> > 
> > > > 	* dwarf2out.c (dwarf2out_finish): Swap break_out_includes and
> > > > 	prune_unused_types order.
> > > 
> > > I guess this is ok, but I think it more useful to turn off
> > > flag_eliminate_unused_debug_types when flag_eliminate_dwarf2_dups.
> > 
> > this patch puts types into their own sections in case
> > both flag_eliminate_unused_debug_types and flag_eliminate_dwarf2_dups
> > are used, so that they do not conflict with each other. It always does
> > this for basic types with flag_eliminate_dwarf2_dups (they are usually
> > defined in all object files). The results (sizes of cc1 compiled with
> > various flag combinations):

Also, it looks like this patch created a compilation unit per type. 
If I'm right, that's the point at which I think we're really abusing
(instead of using) linkonce sections; this should just be implemented
in the linker.

I'm told that with libdwarf, this is not particularly complicated to
implement.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]