(new) Failure building GFortran (Cygwin)

Ian Lance Taylor iant@google.com
Tue Jul 8 08:48:00 GMT 2008


Angelo Graziosi <angelo.graziosi@alice.it> writes:

> --- gcc-4.4-20080704.orig/gcc/ggc-page.c 2008-06-29 06:39:16.000000000 +0200
> +++ gcc-4.4-20080704/gcc/ggc-page.c 2008-07-05 12:00:20.906250000 +0200
> @@ -799,7 +799,7 @@
>  	alloc_size = GGC_QUIRE_SIZE * G.pagesize;
>        else
>  	alloc_size = entry_size + G.pagesize - 1;
> -      allocation = xmalloc (alloc_size);
> +      allocation = XNEWVEC (char, alloc_size);
>
>        page = (char *) (((size_t) allocation + G.pagesize - 1) &
> -G.pagesize);
>        head_slop = page - allocation;
> @@ -842,7 +842,7 @@
>  	  struct page_entry *e, *f = G.free_pages;
>  	  for (a = enda - G.pagesize; a != page; a -= G.pagesize)
>  	    {
> -	      e = xcalloc (1, page_entry_size);
> +	      e = XCNEWVAR (struct page_entry, page_entry_size);
>  	      e->order = order;
>  	      e->bytes = G.pagesize;
>  	      e->page = a;
>

This is OK, with a ChangeLog entry, if it passes bootstrap with the
appropriate configure option.

Thanks.

Ian



More information about the Gcc mailing list