This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa/mainline] PR 14756
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- Date: Sun, 28 Mar 2004 09:17:53 -0800
- Subject: Re: [tree-ssa/mainline] PR 14756
- References: <20040328170916.GG24463@kam.mff.cuni.cz>
Jan Hubicka <jh@suse.cz> writes:
> Hi,
> the error is quite right about the fact that called function is not
> being considered for inlining. The function is not inline function, but
> in the macro call it is casted to inline function, so we get the warning
> output.
>
> This patch makes the errors/warnings to be controlled by the function
> type, not the type it has been possibly casted to.
That sounds right to me.
> Zack, perhaps we should issue warning when casting non-inlie to inline
> and error when casting non-always-inline to always-inline?
Why are casts which add/remove 'inline' allowed *at all*?
...
> init_dummy_function_start ();
> init_expmed ();
> + init_optimization_passes ();
> if (flag_caller_saves)
> init_caller_save ();
> expand_dummy_function_end ();
Isn't init_optimization_passes now being called twice?
zw