Re: [libbacktrace] Fix bootstrap with gcc 4.4

2012-09-19 Thread Ian Lance Taylor
On Wed, Sep 19, 2012 at 2:30 AM, Rainer Orth wrote: > Ian Lance Taylor writes: > >> __sync_* support. Might be worth looking into why the test failed. > > On i386-pc-solaris2.*, __sync_bool_compare_and_swap_4 is missing. > sparc-sun-solaris2.11 is fine, though. Ah, I see. __sync_bool_compare_a

Re: [libbacktrace] Fix bootstrap with gcc 4.4

2012-09-19 Thread Rainer Orth
Ian Lance Taylor writes: > On Tue, Sep 18, 2012 at 1:32 AM, Rainer Orth > wrote: >> The libbacktrace integration broke Solaris 10 and 11 bootstrap when >> using gcc 4.4 (any version of gcc without __sync_* support actually): > > The patch is fine and should fix the problem, but GCC 4.4 does have

Re: [libbacktrace] Fix bootstrap with gcc 4.4

2012-09-18 Thread Ian Lance Taylor
On Tue, Sep 18, 2012 at 1:55 AM, Richard Guenther wrote: > On Tue, Sep 18, 2012 at 10:54 AM, Richard Guenther > wrote: >> On Tue, Sep 18, 2012 at 10:32 AM, Rainer Orth >> wrote: >>> The libbacktrace integration broke Solaris 10 and 11 bootstrap when >>> using gcc 4.4 (any version of gcc without

Re: [libbacktrace] Fix bootstrap with gcc 4.4

2012-09-18 Thread Ian Lance Taylor
On Tue, Sep 18, 2012 at 1:32 AM, Rainer Orth wrote: > The libbacktrace integration broke Solaris 10 and 11 bootstrap when > using gcc 4.4 (any version of gcc without __sync_* support actually): The patch is fine and should fix the problem, but GCC 4.4 does have __sync_* support. Might be worth l

Re: [libbacktrace] Fix bootstrap with gcc 4.4

2012-09-18 Thread Richard Guenther
On Tue, Sep 18, 2012 at 10:54 AM, Richard Guenther wrote: > On Tue, Sep 18, 2012 at 10:32 AM, Rainer Orth > 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. Btw, why do we

Re: [libbacktrace] Fix bootstrap with gcc 4.4

2012-09-18 Thread Richard Guenther
On Tue, Sep 18, 2012 at 10:32 AM, Rainer Orth 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 m

[libbacktrace] Fix bootstrap with gcc 4.4

2012-09-18 Thread Rainer Orth
The libbacktrace integration broke Solaris 10 and 11 bootstrap when using gcc 4.4 (any version of gcc without __sync_* support actually): 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 funct