c/105151 - move early walloca pass
authorRichard Biener <rguenther@suse.de>
Tue, 5 Apr 2022 07:51:32 +0000 (09:51 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 5 Apr 2022 07:54:46 +0000 (09:54 +0200)
commite68f5c90bae44e886bd1b13a135dbfd00bceea0a
treeb8f7bacc12e0f609e27f4ace51990b4ff3016389
parent2874772c4b597daa66ace0ef28b401d597307a03
c/105151 - move early walloca pass

When the walloca pass gained support for ranger the early pass
was not moved to a place where SSA form is available but remained
in the lowering pipeline.  For the testcase in this bug this is
a problem because for errorneous input we still run the lowering
pipeline but here have broken SSA form which ranger does not like.
The solution is to rectify the mistake with using ranger without
SSA form and move the pass which solves both issues.

2022-04-05  Richard Biener  <rguenther@suse.de>

PR c/105151
* passes.def (pass_walloca): Move early instance into
pass_build_ssa_passes to make SSA form available.

* gcc.dg/gimplefe-error-14.c: New testcase.
gcc/passes.def
gcc/testsuite/gcc.dg/gimplefe-error-14.c [new file with mode: 0644]