This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: (new) Failure building GFortran (Cygwin)
- From: "Gabriel Dos Reis" <gdr at integrable-solutions dot net>
- To: "Angelo Graziosi" <angelo dot graziosi at alice dot it>
- Cc: "Ian Lance Taylor" <iant at google dot com>, gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org, gcc at gcc dot gnu dot org, "Dave Korn" <dave dot korn at artimi dot com>
- Date: Tue, 8 Jul 2008 14:22:00 -0500
- Subject: Re: (new) Failure building GFortran (Cygwin)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=eCyDXUm+fqs+exGbg3HkInCHRAfTzPjHQqfxTZ6uU20=; b=VB0iqSqQFoCO1+JBWKQcfZ6/WXCDFYS5DdDG0UDk/64/jbiJYOtvtExgjXpR0Wi1HI R5NvN53WopYoVmdanqfe2PoTgK55LtMhN2zXQKY0gf0iaEZSkK0SoHbSSPzvvZSy35B8 bnMlXWVfKi1mcNT2utLUPL/Ce9XDY/rmvsF9Q=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=TlUdPc9d5AYoGX4+9BU+L19tPErQmXFvgxT9alD9L8PgFNw/xRItP2prSGC7My0hrc NMDzhd2SFiz8Nb6XtacRBf66CSgPfgoRdDAun3abp3aDhoEbwxeyLGeNgBkYNh86lH9N 8Ic7h/vXHjXRxW59THpFfIxQg6MQG+UhXLJXg=
- References: <486629E7.7030003@alice.it> <486F57D8.6060400@alice.it> <008a01c8dfab$344c0ca0$2708a8c0@CAM.ARTIMI.COM> <4871D596.5000105@alice.it> <m3d4lp35ej.fsf@google.com> <487296E2.1090003@alice.it> <m37ibx1e3t.fsf@google.com> <4872ADD7.6060608@alice.it> <m3r6a5ypvl.fsf@google.com> <487329C5.4000101@alice.it>
On Tue, Jul 8, 2008 at 3:48 AM, Angelo Graziosi
<angelo.graziosi@alice.it> wrote:
> 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@alice.it>
>
>
> * 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);
OK.
>
> 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);
OK.
> 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
>