RFR: Using XNEW.../XCNEW... allocations.

Andrew Pinski pinskia@physics.uc.edu
Tue Jan 31 23:38:00 GMT 2006


On Jan 31, 2006, at 5:53 PM, Andrew Pinski wrote:
> This causes a bootstrap failure now that gcc.c does not have
> -Wno-error.
>
> The fix is:
> [dandelion:local/gcc/gcc] pinskia% svn diff gcc.c
> Index: gcc.c
> ===================================================================
> --- gcc.c       (revision 110452)
> +++ gcc.c       (working copy)
> @@ -6481,7 +6481,7 @@ main (int argc, char **argv)
>
>    /* Record which files were specified explicitly as link input.  */
>
> -  explicit_link_files = XCNEWVEC (bool, n_infiles);
> +  explicit_link_files = XCNEWVEC (char, n_infiles);
>
>    if (combine_flag)
>      combine_inputs = true;
>
>
> I am bootstrapping this fix right now.

I applied this as obvious after a quick bootstrap.

Thanks,
Andrew Pinski

ChangeLog:


2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>

         * gcc.c (main): Correct type that is allocated for
         explicit_link_files.



More information about the Gcc-patches mailing list