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: [tree-ssa] Temporary Expression Replacement in SSA->normal.


On Tue, Nov 11, 2003 at 11:18:12AM -0500, Andrew MacLeod wrote:
> +       map->ref_count = (int *)xmalloc (((next_ssa_version + 1) * sizeof (int)));
> +       memset (map->ref_count, 0, (next_ssa_version + 1) * sizeof (int));

xcalloc.  And the cast isn't needed for ISO C.


r~


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