aboutsummaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-02-07 12:56:18 +0100
committerRichard Biener <rguenther@suse.de>2020-02-07 12:57:18 +0100
commit3c7a03bc360c3511fae3747a71e579e9fd0824f9 (patch)
tree80486aaaa38e31f6a148bf0e524ce795e12ad5b4 /gcc/recog.c
parent5713834e4b99e4c4c99eef15698a497f091b7dc4 (diff)
downloadgcc-3c7a03bc360c3511fae3747a71e579e9fd0824f9.zip
gcc-3c7a03bc360c3511fae3747a71e579e9fd0824f9.tar.gz
gcc-3c7a03bc360c3511fae3747a71e579e9fd0824f9.tar.bz2
middle-end/93519 - avoid folding stmts in obviously unreachable code
The inliner folds stmts delayed, the following arranges things so to not fold stmts that are obviously not reachable to avoid warnings from those code regions. 2020-02-07 Richard Biener <rguenther@suse.de> PR middle-end/93519 * tree-inline.c (fold_marked_statements): Do a PRE walk, skipping unreachable regions. (optimize_inline_calls): Skip folding stmts when we didn't inline. * gcc.dg/Wrestrict-21.c: New testcase.
Diffstat (limited to 'gcc/recog.c')
0 files changed, 0 insertions, 0 deletions