From: "H.J. Lu" <hjl.tools@gmail.com>
To: Michael Matz <matz@suse.de>
Cc: Eric Botcazou <ebotcazou@adacore.com>, gcc-patches@gcc.gnu.org
Subject: Re: Remember/restore ALLOCA_FOR_VAR_P over tuples
Date: Wed, 11 May 2011 09:08:00 -0000 [thread overview]
Message-ID: <BANLkTinDqq98xaMSLu5zLSOJFQXGzWMudw@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1104152214550.1989@wotan.suse.de>
On Fri, Apr 15, 2011 at 1:20 PM, Michael Matz <matz@suse.de> wrote:
> Hi,
>
> On Thu, 14 Apr 2011, Michael Matz wrote:
>
>> > Btw, I don't remember why I chose ALLOCA_FOR_VAR_P over
>> > CALL_ALLOCA_FOR_VAR_P but, given the name of the GIMPLE flag and
>> > predicate, it's probably time to change it.
>>
>> Good idea, I'll rename it before checking in.
>
> r172516, for reference also below. I later saw that my patch causes
> cxg2001 to fail. I've analyzed it enough to be sure that it's only
> exposed by this patch (due to inlining now happening), in fact it's a
> problem in IRA that is reproducible with a C++ testcase even without the
> patch. I've filed PR48633 for this.
>
>
> Ciao,
> Michael.
>
> * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
> * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
> * function.c (gimplify_parameters): Ditto.
> * gimplify.c (gimplify_vla_decl): Ditto.
>
> * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
> (gimple_call_set_alloca_for_var): New inline function.
> (gimple_call_alloca_for_var_p): Ditto.
> * gimple.c (gimple_build_call_from_tree): Remember CALL_ALLOCA_FOR_VAR_P
> state.
> * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
>
> * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
> calls if they were for VLA objects.
>
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48953
--
H.J.
prev parent reply other threads:[~2011-05-11 4:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-14 15:18 Michael Matz
2011-04-14 15:24 ` Richard Guenther
2011-04-14 15:49 ` Eric Botcazou
2011-04-14 16:07 ` Michael Matz
2011-04-15 20:25 ` Michael Matz
2011-04-16 12:53 ` Eric Botcazou
2011-05-11 9:08 ` H.J. Lu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTinDqq98xaMSLu5zLSOJFQXGzWMudw@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=ebotcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=matz@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).