diff options
author | Jason Merrill <jason@redhat.com> | 2021-11-25 10:50:59 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-11-30 16:05:24 -0500 |
commit | a3e75c1491cd2d501081210925a89a65b1c1e5e5 (patch) | |
tree | 9efcd2c09b97a67d67d1ada9daa470d19b0a8c91 /gcc/fortran/array.c | |
parent | 91c26004037db689954318d3d1c801eea18d45f4 (diff) | |
download | gcc-a3e75c1491cd2d501081210925a89a65b1c1e5e5.zip gcc-a3e75c1491cd2d501081210925a89a65b1c1e5e5.tar.gz gcc-a3e75c1491cd2d501081210925a89a65b1c1e5e5.tar.bz2 |
c++: don't fold away 'if' with constant condition
richi's recent unreachable code warning experiments had trouble with the C++
front end folding away an 'if' with a constant condition. Let's do less
folding at the statement level.
gcc/cp/ChangeLog:
* cp-gimplify.c (genericize_if_stmt): Always build a COND_EXPR.
Diffstat (limited to 'gcc/fortran/array.c')
0 files changed, 0 insertions, 0 deletions