This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tree-inline mishandles ADDR_EXPRs
- From: Richard Henderson <rth at gcc dot gnu dot org>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, dnovillo at redhat dot com, jakub at redhat dot com
- Date: Sat, 11 Dec 2004 15:16:37 -0800
- Subject: Re: tree-inline mishandles ADDR_EXPRs
- References: <orfz2dlgcz.fsf@livre.redhat.lsd.ic.unicamp.br>
On Sat, Dec 11, 2004 at 12:26:52AM -0200, Alexandre Oliva wrote:
> Maybe all we need is to avoid the optimization for self-inlining.
I think so.
> + if (var && (TREE_CODE (var) == VAR_DECL
> + || TREE_CODE (var) == PARM_DECL
> + || TREE_CODE (var) == LABEL_DECL)
> + && ! lang_hooks.tree_inlining.auto_var_in_fn_p (var, fn))
Why the extra var_decl etc check? I'd think auto_var_in_fn_p would
take care of that.
r~