[PATCH] Fix removal of trivially empty bb's even in CFGRTL mode (PR middle-end/44102)

Steven Bosscher stevenb.gcc@gmail.com
Thu May 13 13:24:00 GMT 2010


On Thu, May 13, 2010 at 12:44 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> On the attached testcase (which is basically asmgoto-4.c, just with ensuring
> RTL EH pass is invoked on it) the trivially empty bb caused by
> __builtin_unreachable () isn't deleted in cfglayout mode, but already during
> RTL EH pass, and unfortunately the BARRIER after it is dropped, which
> results in CFG verification failures.
>
> This patch ensures the barrier stays.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.5?

This seems wrong, header and footer should be NULL when not in cfglayout mode.

Ciao!
Steven



More information about the Gcc-patches mailing list