Comments
Patch
===================================================================
@@ -791,7 +791,7 @@ build_binary_op (enum tree_code op_code,
result = compare_arrays (result_type, left_operand, right_operand);
if (op_code == NE_EXPR)
- result = invert_truthvalue (result);
+ result = invert_truthvalue_loc (EXPR_LOCATION (result), result);
else
gcc_assert (op_code == EQ_EXPR);
@@ -1018,7 +1018,7 @@ build_unary_op (enum tree_code op_code,
#ifdef ENABLE_CHECKING
gcc_assert (TREE_CODE (get_base_type (result_type)) == BOOLEAN_TYPE);
#endif
- result = invert_truthvalue (operand);
+ result = invert_truthvalue_loc (EXPR_LOCATION (operand), operand);
break;
case ATTR_ADDR_EXPR:
===================================================================
@@ -4496,7 +4496,8 @@ gnat_to_gnu (Node_Id gnat_node)
}
if (kind == N_Not_In)
- gnu_result = invert_truthvalue (gnu_result);
+ gnu_result
+ = invert_truthvalue_loc (EXPR_LOCATION (gnu_result), gnu_result);
}
break;