This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libitm] Add SPARC bits
- From: David Miller <davem at davemloft dot net>
- To: ebotcazou at adacore dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Feb 2012 20:02:51 -0500 (EST)
- Subject: Re: [libitm] Add SPARC bits
- References: <201202122115.26506.ebotcazou@adacore.com>
From: Eric Botcazou <ebotcazou@adacore.com>
Date: Sun, 12 Feb 2012 21:15:26 +0100
> + load [%o1 + OFFSET (JB_CFA)], %fp
> + cfi_def_cfa(%fp, 0)
> +#if STACK_BIAS
> + sub %fp, STACK_BIAS, %fp
> + cfi_def_cfa_offset(STACK_BIAS)
> +#endif
I think you really need to put the proper value into the %fp register
atomically here.
If an interrupt comes in before you STACK_BIAS adjust the %fp, a
debugger or similar could see a corrupt frame pointer.