aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2019-09-19 08:12:47 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-09-19 08:12:47 +0000
commite516702202bcdc26181cf9fab120fcb15ca0c15d (patch)
tree31f92ae686a693ce3670782d8fd53b11dde69d63 /gcc/ada/gcc-interface
parent5d66b937e3d1bbdbaace1da7bc5fac8a94793108 (diff)
downloadgcc-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