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: [gccgo] When making a slice, increase the capacity to the length


Richard Henderson <rth@redhat.com> writes:

> On 12/07/2009 10:56 PM, Ian Lance Taylor wrote:
>> +      capacity_tree = fold_build3_loc(location, COND_EXPR,
>> +				      TREE_TYPE(count_field),
>> +				      fold_build2_loc(location,
>> +						      LT_EXPR,
>> +						      boolean_type_node,
>> +						      capacity_tree,
>> +						      length_tree),
>> +				      length_tree,
>> +				      capacity_tree);
>
> MAX_EXPR?

Oh yeah.  Thanks.

Ian


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