Re: Patch to fix optabs.c when SWITCHABLE_TARGETS is defined.

2011-11-07 Thread Andrew MacLeod
On 11/07/2011 12:48 PM, Richard Henderson wrote: On 11/07/2011 07:49 AM, Andrew MacLeod wrote: 2011-11-07 Andrew MacLeod * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so SWITCHABLE_TARGET can change the valuies during compilation. (expand_atomic_fe

Re: Patch to fix optabs.c when SWITCHABLE_TARGETS is defined.

2011-11-07 Thread Richard Henderson
On 11/07/2011 07:49 AM, Andrew MacLeod wrote: > 2011-11-07 Andrew MacLeod > > * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so > SWITCHABLE_TARGET can change the valuies during compilation. > (expand_atomic_fetch_op): handle parameter changes ripples for

Re: Patch to fix optabs.c when SWITCHABLE_TARGETS is defined.

2011-11-07 Thread Tom de Vries
On 11/07/2011 04:49 PM, Andrew MacLeod wrote: > On 11/07/2011 09:43 AM, Tom de Vries wrote: >> On 11/06/2011 04:04 PM, Andrew MacLeod wrote: >>> (get_atomic_op_for_code): New. Return an opcode table entry. >> I'm getting these errors with a MIPS cross build: >> ... >> /scratch/vries/b4/ref-mip

Patch to fix optabs.c when SWITCHABLE_TARGETS is defined.

2011-11-07 Thread Andrew MacLeod
On 11/07/2011 09:43 AM, Tom de Vries wrote: On 11/06/2011 04:04 PM, Andrew MacLeod wrote: (get_atomic_op_for_code): New. Return an opcode table entry. I'm getting these errors with a MIPS cross build: ... /scratch/vries/b4/ref-mips-ml-11-11-07/src/gcc-mainline/gcc/optabs.c: In function