Re: (new) Failure building GFortran (Cygwin)

Top Page

Reply to this message
Author: Angelo Graziosi
Date:  
To: Ian Lance Taylor
CC: gcc-patches, fortran, gcc, Dave Korn, gdr
Subject: Re: (new) Failure building GFortran (Cygwin)
Ian Lance Taylor ha scritto:
>
> This is OK, with a ChangeLog entry, if it passes bootstrap with the
> appropriate configure option.



The following bootstraps rev. 137613, having configured as

${gcc_dir}/configure --prefix="${prefix_dir}" \
--exec-prefix="${eprefix_dir}" \
--sysconfdir="${sysconf_dir}" \
--libdir="${lib_dir}" \
--libexecdir="${libexec_dir}" \
--mandir="${man_dir}" \
--infodir="${info_dir}" \
--enable-languages=c,fortran \
--enable-bootstrap \
--enable-decimal-float=bid \
--enable-libgomp \
--enable-threads \
--enable-sjlj-exceptions \
--enable-version-specific-runtime-libs \
--enable-nls \
--enable-checking=release \
--disable-fixed-point \
--disable-libmudflap \
--disable-shared \
--disable-win32-registry \
--with-system-zlib \
--without-included-gettext \
--without-x

===========================================================
gcc/ChangeLog:
2008-07-08 Angelo Graziosi <angelo.graziosi@???>


    * ggc-page.c (alloc_page):
    Substituting xmalloc, xcalloc with
XNEWVEC and XCNEWVAR macros which add the
needed casts.



--- gcc.orig/gcc/ggc-page.c 2008-06-29 06:39:16.000000000 +0200
+++ gcc/gcc/ggc-page.c 2008-07-08 09: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;
===========================================================


Cheers,
Angelo.

---
Facesti come quei che va di notte,
che porta il lume dietro e se' non giova,
ma dopo se' fa le persone dotte.
.
DANTE, Purgatorio, xxii 67-69