aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.cc
diff options
context:
space:
mode:
authorTucker Taft <taft@adacore.com>2024-12-04 16:22:10 +0000
committerMarc Poulhiès <dkm@gcc.gnu.org>2025-01-03 16:39:13 +0100
commit98e37c6ca5a0b3dd2729dcf3e79df40edb020f52 (patch)
tree2be96bc8bd5483c1efca9f794bfa58d4a082a0b5 /gcc/dwarf2out.cc
parent0a6736ef366af6bcd7e25567919202fd6c40b7c9 (diff)
downloadgcc-98e37c6ca5a0b3dd2729dcf3e79df40edb020f52.zip
gcc-98e37c6ca5a0b3dd2729dcf3e79df40edb020f52.tar.gz
gcc-98e37c6ca5a0b3dd2729dcf3e79df40edb020f52.tar.bz2
ada: Add parentheses in expressions involving combinations of and & or
In the Expression_Image function, we were not inserting parentheses properly when there was a sequence of and and or operators, even though Ada requires such parentheses to show the correct order of association. gcc/ada/ChangeLog: * pprint.adb (Expression_Image): In local function Expr_Name add a No_Parens flag and define a subtype Not_Associative to represent the short-circuit operations and And/Or/Xor. Insert parentheses to separate the subexpressions when different "Not_Associative" operations occur in a sequence.
Diffstat (limited to 'gcc/dwarf2out.cc')
0 files changed, 0 insertions, 0 deletions