This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Alignment fault during function call
- From: Michael Matz <matz at suse dot de>
- To: Bernd Schmidt <bernds at codesourcery dot com>
- Cc: Jeff Law <law at redhat dot com>, Paul Brook <paul at codesourcery dot com>, gcc-patches at gcc dot gnu dot org, Jan Hubicka <jh at suse dot cz>
- Date: Thu, 5 Aug 2010 17:59:07 +0200 (CEST)
- Subject: Re: [PATCH] Alignment fault during function call
- References: <201006071117.57879.paul@codesourcery.com> <4C5A0525.5050902@codesourcery.com> <4C5A095E.6030902@redhat.com> <4C5AD815.70103@codesourcery.com>
Hi,
On Thu, 5 Aug 2010, Bernd Schmidt wrote:
> + /* Avoid nesting calls. We allow a few things which we're certain won't
> + generate library calls. */
> + if (is_gimple_call (use_stmt)
> + && gimple_assign_rhs_code (stmt) != VAR_DECL
> + && gimple_assign_rhs_code (stmt) != PARM_DECL)
> + return false;
You want to allow SSA_NAMEs at least here. Of course the above is quite
conservative, OTOH TERing into calls shouldn't be terribly important
anyway.
Ciao,
Michael.