aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-08-05 12:00:07 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 15:07:39 -0300
commit19f69a3d68bb6f7ad92d6b38aab4dff69eff0945 (patch)
tree357ece9462e45f03a3d91bb15d1bf7bc58ebf5b6 /gcc/cp/constexpr.c
parent2f99b454849544a38f4c6f1a6affd140d64ef22b (diff)
downloadgcc-19f69a3d68bb6f7ad92d6b38aab4dff69eff0945.zip
gcc-19f69a3d68bb6f7ad92d6b38aab4dff69eff0945.tar.gz
gcc-19f69a3d68bb6f7ad92d6b38aab4dff69eff0945.tar.bz2
Make genmatch transform failure handling more consistent
Currently whether a fail during the transform stage is fatal or whether following patterns are still considers is a bit random depending on whether the pattern is wrapped in a for for example. The follwing makes it consistent by replacing early returns with gotos to the end of the pattern processing. 2020-08-05 Richard Biener <rguenther@suse.de> * genmatch.c (fail_label): New global. (expr::gen_transform): Branch to fail_label instead of returning. Fix indent of call argument checking. (dt_simplify::gen_1): Compute and emit fail_label, branch to it instead of returning early.
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions