diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-12-23 09:40:19 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-12-23 09:40:19 +0100 |
commit | 58ccbd1cdae4238dee5af09183fcf48729830b77 (patch) | |
tree | 25950ee9e5606ae3ad5f16ee90324afb8f864ac5 /gcc/builtins.c | |
parent | 3911519ed5b63c98fa5050aef291b19a40f81fcc (diff) | |
download | gcc-58ccbd1cdae4238dee5af09183fcf48729830b77.zip gcc-58ccbd1cdae4238dee5af09183fcf48729830b77.tar.gz gcc-58ccbd1cdae4238dee5af09183fcf48729830b77.tar.bz2 |
re PR c++/83553 (compiler removes body of the for-loop, although there is a case label inside)
PR c++/83553
* fold-const.c (struct contains_label_data): New type.
(contains_label_1): Return non-NULL even for CASE_LABEL_EXPR, unless
inside of a SWITCH_BODY seen during the walk.
(contains_label_p): Use walk_tree instead of
walk_tree_without_duplicates, prepare data for contains_label_1 and
provide own pset.
* c-c++-common/torture/pr83553.c: New test.
From-SVN: r255987
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions