]> gcc.gnu.org Git - gcc.git/commit
Do not use DW_OP_not for TRUTH_NOT_EXPR in conditional expressions
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 16 May 2022 08:44:09 +0000 (10:44 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 16 May 2022 09:04:51 +0000 (11:04 +0200)
commitcc7cd8d57cabf2598a1c5f64dd77487c31b4d149
tree5cf40ef94c4346506f69af239f9eb5e6272a430c
parentb90e43dbbb2ba00ef2f8b2468fb09b43a12ae13d
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.
gcc/dwarf2out.cc
This page took 0.060563 seconds and 5 git commands to generate.