diff options
author | Tom Tromey <tromey@adacore.com> | 2024-11-04 07:31:20 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-11-20 13:18:40 -0700 |
commit | b6f3ac06eec82b1a9d41a4583261ff022c9e9843 (patch) | |
tree | 1a85f7380abb2bc916e9eba204e5ae7bce81fadf /gas | |
parent | 1fb5ccd6bfc140c0f542cdd678e5888e18599e59 (diff) | |
download | binutils-b6f3ac06eec82b1a9d41a4583261ff022c9e9843.zip binutils-b6f3ac06eec82b1a9d41a4583261ff022c9e9843.tar.gz binutils-b6f3ac06eec82b1a9d41a4583261ff022c9e9843.tar.bz2 |
Improve choice sorting in ada-lang.c
ada-lang.c has a "sort_choices" function that claims to sort the
symbol choices, but which does not really implement sorting. This
patch changes this code to really sort the result vector, sorting
first by filename, then line number, and finally by the symbol name.
The filename sorting is done first by comparing basenames. It turns
out that gnatmake and gprbuild invoke the compiler a bit differently,
so depending on which one you use, the results of a naive sort might
be different (due to the use of absolute or relative paths).
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions