Re: [SPARC] Emit memory blockage for non-atomic %sp decrement

2011-12-16 Thread David Miller
From: Eric Botcazou Date: Sat, 17 Dec 2011 00:37:43 +0100 > 2011-12-16 Eric Botcazou > > * config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant. > (frame_blockage): New expander. > (frame_blockage): New instruction. > * config/sparc/sparc.c (sparc_expand_prologu

[SPARC] Emit memory blockage for non-atomic %sp decrement

2011-12-16 Thread Eric Botcazou
In regular mode (with register windows), the compiler can make use of three sequences to establish the frame: 1. a single 'save' instruction taking an immediate as decrement, 2. a 'save' instruction taking an immediate followed by an 'add' instruction taking another immediate as decrement, 3.