This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Fwd: [PATCH] Fix PR54659, include gmp.h from system.h


I checked in this patch to sync with gcc.


---------- Forwarded message ----------
From: H.J. Lu <hjl.tools@gmail.com>
Date: Tue, Jan 8, 2013 at 10:50 AM
Subject: Re: [PATCH] Fix PR54659, include gmp.h from system.h
To: Richard Biener <rguenther@suse.de>, "Iyer, Balaji V"
<balaji.v.iyer@intel.com>
Cc: gcc-patches@gcc.gnu.org, Diego Novillo <dnovillo@google.com>,
iant@google.com


On Fri, Dec 21, 2012 at 5:14 AM, Richard Biener <rguenther@suse.de> wrote:
>
> After the Ada fix including gmp.h from system.h is trivial
> (by means of double-int.h it was included from almost everywhere
> already)
>
> Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
>
> Ok for trunk?  (Go frontend "unfixed")
>
> Thanks,
> Richard.
>
> 2012-12-21  Richard Biener  <rguenther@suse.de>
>
>         PR bootstrap/54659
>         * system.h: Include gmp.h.
>         * tree-ssa-loop-niter.c: Do not include gmp.h here.
>         * double-int.h: Likewise.
>         * realmpfr.h: Likewise.
>
>         fortran/
>         * gfortran.h: Do not include gmp.h here.
>

This breaks bootstrap with in-tree gmp since system.h is included for
host feature test by gcc/configure.  Before gmp is built, gmp.h isn't
available.  We need to build gmp first before configuring gcc.

Balaji, can you try this patch?


--
H.J.
--
2013-01-08  H.J. Lu  <hongjiu.lu@intel.com>

        * Makefile.def (configure-gcc): Depend on all-gmp.
        (all-gcc): Remove dependency on all-gmp.
        * Makefile.in: Regenerated.


-- 
H.J.

Attachment: gcc-gmp.patch
Description: Binary data


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