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] Fix PR46664


Hi,

> When aff_combination_add overflows MAX_AFF_ELTS it appends to ->rest
> and for pointer typed combination does so in sizetype.  This shows
> an inconsistency wrt aff_combination_to_tree which starts with ->rest,
> adding to a non-pointer even for pointer typed combinations.
> 
> It seems more natural to add ->rest last and assume that the first
> element of the combination will be the pointer base.  Starting with
> ->rest was probably done for efficiency reasons, not for code quality
> or consistency with something else?

no, there was no reason other than making the code of aff_combination_to_tree
two lines shorter :-)

Zdenek


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