This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/82158] _Noreturn functions that do return clobber caller's registers on ARM32 (but not other arches)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]