diff options
author | Bob Duff <duff@adacore.com> | 2019-09-19 08:12:47 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2019-09-19 08:12:47 +0000 |
commit | e516702202bcdc26181cf9fab120fcb15ca0c15d (patch) | |
tree | 31f92ae686a693ce3670782d8fd53b11dde69d63 /gcc/ada/gcc-interface | |
parent | 5d66b937e3d1bbdbaace1da7bc5fac8a94793108 (diff) | |
download | gcc-e516702202bcdc26181cf9fab120fcb15ca0c15d.zip gcc-e516702202bcdc26181cf9fab120fcb15ca0c15d.tar.gz gcc-e516702202bcdc26181cf9fab120fcb15ca0c15d.tar.bz2 |
[Ada] gnatxref: infinite loop on symbols not found
This patch fixes a bug in which if a symbol is not found, gnatxref can
sometimes enter an infinite loop. No impact on compilation.
2019-09-19 Bob Duff <duff@adacore.com>
gcc/ada/
* xref_lib.adb (Get_Symbol_Name): If we reach EOF in the first
loop without finding the symbol, return "???". Otherwise, it's
an infinite loop.
(Parse_EOL): Assert that we're not already at EOF. Remove
processing of LF/CR -- there are no operating systems that use
that.
From-SVN: r275932
Diffstat (limited to 'gcc/ada/gcc-interface')
0 files changed, 0 insertions, 0 deletions