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: Remove memory leak in handle_vector_size_attribute


On Thu, Apr 18, 2002 at 12:14:33PM +0100, Bernd Schmidt wrote:
> 	* attribs.c (vector_type_node_list): New static variable.
> 	(handle_vector_size_attribute): Use it to avoid generating a
> 	new type node each time we are called.

Why not use the tree.c hash functions instead of a linear list?


r~


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