This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libbacktrace] Fix bootstrap with gcc 4.4
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Rainer Orth <ro at cebitec dot uni-bielefeld dot de>
- Cc: gcc-patches at gcc dot gnu dot org, Ian Lance Taylor <iant at google dot com>
- Date: Tue, 18 Sep 2012 10:54:25 +0200
- Subject: Re: [libbacktrace] Fix bootstrap with gcc 4.4
- References: <yddpq5john5.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
On Tue, Sep 18, 2012 at 10:32 AM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> The libbacktrace integration broke Solaris 10 and 11 bootstrap when
> using gcc 4.4 (any version of gcc without __sync_* support actually):
Ouch, that's bad.
> stage1 config.h has
>
> /* #undef HAVE_SYNC_FUNCTIONS */
>
> and fileline.c and mmap.c fail to compile:
>
> /vol/gcc/src/hg/trunk/local/libbacktrace/fileline.c: In function 'fileline_init
> alize':
> /vol/gcc/src/hg/trunk/local/libbacktrace/fileline.c:58: error: implicit declarat
> ion of function 'abort'
>
> The following patch fixes this by including <stdlib.h> for the abort()
> declaration in the affected files. It allows the Solaris 11 bootstrap
> to continue.
>
> Ok for mainline?
Ok.
Thanks,
Richard.
> Unfortunately, Solaris 10 (and certainly Solaris 9, too) bootstrap is still
> broken:
>
> /vol/gcc/src/hg/trunk/local/libbacktrace/dwarf.c:652: error: implicit declaration of function 'strnlen'
> make[1]: *** [dwarf.lo] Error 1
>
> Both completely lack strnlen(). I haven't done anything about this yet.
>
> Rainer
>
>
> 2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>
> * fileline.c: Include <stdlib.h>.
> * mmap.c: Likewise.
>
>
>
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>