aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/expr.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-05-16 10:44:09 +0200
committerEric Botcazou <ebotcazou@adacore.com>2022-05-16 11:04:51 +0200
commitcc7cd8d57cabf2598a1c5f64dd77487c31b4d149 (patch)
tree5cf40ef94c4346506f69af239f9eb5e6272a430c /gcc/d/expr.cc
parentb90e43dbbb2ba00ef2f8b2468fb09b43a12ae13d (diff)
downloadgcc-cc7cd8d57cabf2598a1c5f64dd77487c31b4d149.zip
gcc-cc7cd8d57cabf2598a1c5f64dd77487c31b4d149.tar.gz
gcc-cc7cd8d57cabf2598a1c5f64dd77487c31b4d149.tar.bz2
Do not use DW_OP_not for TRUTH_NOT_EXPR in conditional expressions
DW_OP_not is a bitwise, not a logical NOT, so it computes the wrong result in a DWARF conditional expression. gcc/ * dwarf2out.cc (loc_list_from_tree_1) <TRUTH_NOT_EXPR>: Do a logical instead of a bitwise negation. <COND_EXPR>: Swap the operands if the condition is TRUTH_NOT_EXPR.
Diffstat (limited to 'gcc/d/expr.cc')
0 files changed, 0 insertions, 0 deletions