https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372
--- Comment #42 from uros at gcc dot gnu.org --- Author: uros Date: Sun Nov 11 17:36:23 2018 New Revision: 266014 URL: https://gcc.gnu.org/viewcvs?rev=266014&root=gcc&view=rev Log: Backport from mainline 2018-11-04 Uros Bizjak <ubiz...@gmail.com> PR middle-end/58372 * cfgexpand.c (pass_expand::execute): Move the call to finish_eh_generation in front of the call to expand_stack_alignment. testsuite/ChangeLog: Backport from mainline 2018-11-04 Uros Bizjak <ubiz...@gmail.com> PR middle-end/58372 * g++.dg/pr58372.C: New test. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/pr58372.C Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/cfgexpand.c branches/gcc-8-branch/gcc/testsuite/ChangeLog