This is the mail archive of the gcc-patches@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]

Re: tree-inline mishandles ADDR_EXPRs


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~


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