This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/71876] longjmp is miscompiled with -ffreestanding
- From: "edlinger at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Jul 2016 19:06:33 +0000
- Subject: [Bug middle-end/71876] longjmp is miscompiled with -ffreestanding
- Auto-submitted: auto-generated
- References: <bug-71876-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71876
--- Comment #12 from Bernd Edlinger <edlinger at gcc dot gnu.org> ---
Author: edlinger
Date: Thu Jul 21 19:06:02 2016
New Revision: 238605
URL: https://gcc.gnu.org/viewcvs?rev=238605&root=gcc&view=rev
Log:
016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR middle-end/71876
* calls.c (gimple_maybe_alloca_call_p): New function. Return true
if STMT may be an alloca call.
(gimple_alloca_call_p, alloca_call_p): Return only true for the
builtin alloca call.
* calls.h (gimple_maybe_alloca_call_p): New function.
* tree-inline.c (inline_forbidden_p_stmt): Use
gimple_maybe_alloca_call_p here.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/calls.c
trunk/gcc/calls.h
trunk/gcc/tree-inline.c