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: [lto] PATCH: change low-level CALL_EXPR representation


Sandra Loosemore <sandra@codesourcery.com> writes:

> 2006-08-10  Sandra Loosemore  <sandra@codesourcery.com>
> 
> 	* gcc/gentype.c (walk_type): When walking an array, compute the
> 	length and store it in a local variable before walking the array
> 	elements, instead of recomputing the length expression each time
> 	through the loop.  This is necessary to handle the new CALL_EXPR
> 	representation where the length is stored in the first array element,
> 	because otherwise that operand was getting overwritten on the
> 	first iteration.

Please put explanations as comments in the code, not in the ChangeLog
entry.  Thanks.

Ian


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