]> git.ipfire.org Git - thirdparty/gcc.git/commit
trans.c (stmt_group_may_fallthru): New function.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 18 Jul 2012 12:20:06 +0000 (12:20 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 18 Jul 2012 12:20:06 +0000 (12:20 +0000)
commita712b009c56fde0f26e757509b1019d6fb7b6ed6
treef5f56fec465806d6c16572fa83015e989dc46ef8
parentedd5e90012b96ce9c2f9ff3837561e51aa509ebd
trans.c (stmt_group_may_fallthru): New function.

* gcc-interface/trans.c (stmt_group_may_fallthru): New function.
(gnat_to_gnu) <N_Block_Statement>: Use it to find out whether the
block needs to be translated.

From-SVN: r189612
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/noreturn4.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/noreturn4.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/noreturn4_pkg.ads [new file with mode: 0644]