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: RFR: Using XNEW.../XCNEW... allocations.



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.


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