diff options
author | Marek Polacek <polacek@redhat.com> | 2017-08-17 14:33:13 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2017-08-17 14:33:13 +0000 |
commit | e67bbd5da485d131c174d9a65669d3cb78057a8d (patch) | |
tree | 2bb315814e48b34f5839a38ff5724c92b008680a /gcc/tree-inline.h | |
parent | 909e448f672250610dd93204be3f9abe42748311 (diff) | |
download | gcc-e67bbd5da485d131c174d9a65669d3cb78057a8d.zip gcc-e67bbd5da485d131c174d9a65669d3cb78057a8d.tar.gz gcc-e67bbd5da485d131c174d9a65669d3cb78057a8d.tar.bz2 |
re PR middle-end/81814 (Incorrect behaviour at -O0 (conditional operator))
PR middle-end/81814
* fold-const.c (operand_equal_for_comparison_p): Remove code that used
to mimic what shorten_compare did. Change the return type to bool.
(fold_cond_expr_with_comparison): Update call to
operand_equal_for_comparison_p.
(fold_ternary_loc): Likewise.
* gcc.dg/torture/pr81814.c: New test.
From-SVN: r251152
Diffstat (limited to 'gcc/tree-inline.h')
0 files changed, 0 insertions, 0 deletions