This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libitm] Add SPARC bits


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]