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]

Re: [PATCH] gold: remove unused methods in Output_data_got_powerpc


On Sat, Oct 12, 2013 at 07:56:08AM -0700, Cary Coutant wrote:
> > Another option, avoiding the need for a virtual function and the
> > overhead this adds for all targets, is to override add_global(),
> > add_global_plt() etc. in Output_data_got_powerpc.  This keeps the
> > overhead to powerpc.cc.  Is this preferable?
> >
> > I also moved add_constant_pair into output.h for symmetry (and just in
> > case someone decided to optimise addition of constants).
> 
> This looks good to me. Thanks!

Now committed to mainline and 2.24 with this changelog.

	* output.h (Output_data_got::add_constant): Tidy.
	(Output_data_got::add_constant_pair): New function.
	* powerpc.cc (Output_data_got_powerpc): Override all Output_data_got
	methods used so as to first call reserve_ent().


-- 
Alan Modra
Australia Development Lab, IBM


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