[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11845: guile-1.8.8 segfaults at build-time with gcc-4.6.3 and -O3
From: |
Cyprien Nicolas |
Subject: |
bug#11845: guile-1.8.8 segfaults at build-time with gcc-4.6.3 and -O3 |
Date: |
Tue, 03 Jul 2012 12:33:00 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120622 Firefox/13.0.1 SeaMonkey/2.10.1 |
Ludovic Courtès wrote:
> Hi Cyprien,
Hi Ludo’,
>
> Guile 2.0 uses this instead:
>
> --8<---------------cut here---------------start------------->8---
> int
> find_stack_direction (int *addr, int depth)
> {
> int dir, dummy = 0;
> if (! addr)
> addr = &dummy;
> *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
> dir = depth ? find_stack_direction (addr, depth - 1) : 0;
> return dir + dummy;
> }
>
> int
> main (int argc, char **argv)
> {
> return find_stack_direction (0, argc + !argv + 20) < 0;
> }
> --8<---------------cut here---------------end--------------->8---
>
> Can you check whether it works for you?
Already checked, at the very end of my previous message, and it actually
works for me.
> (See also
> <http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00041.html>
> on that topic.)
This is the exact same issue :)
--
,Cyprien