bug-mes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [WIP v3] Introduce mescc.a for division algorithm and move the latte


From: Jan Nieuwenhuizen
Subject: Re: [WIP v3] Introduce mescc.a for division algorithm and move the latter there.
Date: Fri, 29 May 2020 22:12:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Danny Milosavljevic writes:

Hi Danny,

> On Fri, 29 May 2020 15:26:04 +0200
> Danny Milosavljevic <dannym@scratchpost.org> wrote:
>
>> >lib/tests/setjmp/80-setjmp.c: test-c.sh line 71:  5490 Segmentation fault  
>> 
>> second
>> Segmentation fault (core dumped)
>> 
>> And that's *after* I implemented setjmp :P
>
> When I implement setjmp like this:
>
> void
> setjmp (jmp_buf env)
>
> then it doesn't work.
>
> Then I implement setjmp like this:
>
> void
> setjmp (__jmp_buf * env)
>
> then it does work.

Yes, I wondered about this before, and went back and forth with it --
ind the end assuming it's an interface thing.  Not sure who/what
decides which must be used.

> I suspect that env[0].sp = ... is not working as intended for actual
> arrays (as opposed to pointers).  (Might also be broken on i686 but I
> don't remember)
>
> When debugging I saw that it didn't actually store the data into the
> jmp_buf structure on setjmp but rather stored it on the stack (but the
> jmp_buf structure is a global variable in this test case).

Right.

> Pushed as commit 436f1c7ae23c4bf5283081a4f5e88f67dc10356b to branch wip-arm.

Thank you!  You're getting there...

Janneke


-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]