From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Date: Wed, 24 Mar 2021 13:39:38 +0100 Subject: [PATCH v2 2/2] test: unit test for longjmp In-Reply-To: (Heinrich Schuchardt's message of "Wed, 24 Mar 2021 12:16:48 +0100") References: <20210322110249.4387-1-xypron.glpk@gmx.de> <20210322110249.4387-3-xypron.glpk@gmx.de> <47007446-5ad9-c5b2-dc55-78400f288dc5@gmail.com> <90e8d095-9a0a-2524-131c-49e79a47aa08@gmail.com> <875z1goqor.fsf@igel.home> Message-ID: <87v99gn2t1.fsf@igel.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On M?r 24 2021, Heinrich Schuchardt wrote: > And foo is obviously "changed between the setjmp invocation and longjmp > call". > > The current version of the patch is: > https://patchwork.ozlabs.org/project/uboot/patch/20210323181127.32411-3-xypron.glpk at gmx.de/ > > So I guess we have to declare env as volatile in setjmp() in this > version of the patch because it is changed between the setjmp and > longjmp invocations? Yes, I think so, or make it static. Andreas. -- Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."