This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/82158] _Noreturn functions that do return clobber caller's registers on ARM32 (but not other arches)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Oct 2017 07:36:19 +0000
- Subject: [Bug target/82158] _Noreturn functions that do return clobber caller's registers on ARM32 (but not other arches)
- Auto-submitted: auto-generated
- References: <bug-82158-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82158
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct 20 07:35:48 2017
New Revision: 253926
URL: https://gcc.gnu.org/viewcvs?rev=253926&root=gcc&view=rev
Log:
PR target/82158
* tree-cfg.c (pass_warn_function_return::execute): In noreturn
functions when optimizing replace GIMPLE_RETURN stmts with
calls to __builtin_unreachable ().
* gcc.dg/tree-ssa/noreturn-1.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/noreturn-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-cfg.c