diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2023-01-31 13:45:23 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-22 10:44:07 +0200 |
commit | f120fa236752feec39797020b55cd2f0c2729473 (patch) | |
tree | ff72d2c662327ba7b48cf4077eb6bec56c03494c /gcc/ada/debug.adb | |
parent | 68d93e0111d3b1956cf3fed3b2ad430d8fc001f3 (diff) | |
download | gcc-f120fa236752feec39797020b55cd2f0c2729473.zip gcc-f120fa236752feec39797020b55cd2f0c2729473.tar.gz gcc-f120fa236752feec39797020b55cd2f0c2729473.tar.bz2 |
ada: Fix traversal for the rightmost node of a pretty-printed expression
When getting the rightmost node of a pretty-printed expression we
incorrectly traversed some composite nodes, which caused the expression
image to be chopped.
gcc/ada/
* pprint.adb (Expression_Image): Reduce scope of local variables; inline
local uncommented constant From_Source; concatenate string with a single
character, as it is likely to execute faster; add missing cases to
traversal for the rightmost node and assertion to demonstrate that the
??? comment is no longer relevant.
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions