This is the mail archive of the
mailing list for the GCC project.
Re: [patch] expr.c: Don't request a value to expand_assignment.
- From: Jeffrey A Law <law at redhat dot com>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 18 Oct 2004 14:22:51 -0600
- Subject: Re: [patch] expr.c: Don't request a value to expand_assignment.
- Organization: Red Hat, Inc
- References: <email@example.com>
- Reply-to: law at redhat dot com
On Sat, 2004-10-16 at 06:32, Kazu Hirata wrote:
> Attached is a patch to not request a value to expand_assignment when
> expanding a MODIFY_EXPR.
> As far as I know, the tree-ssa infrastructure does not generate tree
> that requests a value of an assignment (e.g. a = b = c;) regardless of
> whether optimizing or not.
> This is the only place that requests a value to expand_assignment.
> Once this patch is applied, we can clean up expand_assignment so that
> it won't have to bother returning a value.
> Tested on i686-pc-linux-gnu. OK to apply?
> Kazu Hirata
> 2004-10-15 Kazu Hirata <firstname.lastname@example.org>
> * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
> value to expand_assignment.
This is fine. Please install.