This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [libbacktrace] Fix bootstrap with gcc 4.4


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
>


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