Re: [PATCH] DWARF sort longer dirs before shorter ones in directory table.

2018-04-25 Thread Mark Wielaard
On Mon, 2018-04-16 at 09:41 +0200, Jakub Jelinek wrote: > On Mon, Apr 16, 2018 at 09:34:17AM +0200, Mark Wielaard wrote: > > gcc/ChangeLog: > > > > * dwarf2out.c (file_info_cmp): Sort longer dir prefixes before > > shorter ones. > > Ok, thanks. Pushed now that trunk is in stage 1 again.

Re: [PATCH] DWARF sort longer dirs before shorter ones in directory table.

2018-04-16 Thread Jakub Jelinek
On Mon, Apr 16, 2018 at 09:34:17AM +0200, Mark Wielaard wrote: > gcc/ChangeLog: > > * dwarf2out.c (file_info_cmp): Sort longer dir prefixes before > shorter ones. Ok, thanks. Jakub

[PATCH] DWARF sort longer dirs before shorter ones in directory table.

2018-04-16 Thread Mark Wielaard
When gcc dwarf2out generates the .debug_line table itself (for example when generating one for a split DWARF .dwo) it uses natural sorting for the directory table. Longer directory paths come before shorter directory paths with the same prefix. This causes the files in the line table to pick the sh