This is the mail archive of the gcc@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: debug strings output order is arbitrary


On Sun, Mar 16, 2014 at 3:58 AM, Martin Uecker <uecker@eecs.berkeley.edu> wrote:
>
> Hi list,
>
> the strings in the ".debug_str" section are output
> in an arbitrary order. Could this be changed?
>
> The function 'output_indirect_strings' in 'gcc/dwarf2out.c'
> uses htab_traverse which then outputs the string in the
> order they appear in the hash table. Instead, it would
> be nicer to output them based on their labels (which are
> assigned based on the order of creation).
>
> This would minimize differences between builds with
> slightly different build environments, e.g. directory.

Can you propose a patch?  Note that at creation time only
the string itself is known, so sorting after the string may
be another possibility.

Richard.


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