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: [patch] expr.c: Don't request a value to expand_assignment.


On Sat, 2004-10-16 at 06:32, Kazu Hirata wrote:
> Hi,
> 
> 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  <kazu@cs.umass.edu>
> 
> 	* expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
> 	value to expand_assignment.
This is fine.  Please install.

jeff



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