Re: sync_fetch_and_add creating unrecognizable insn

2007-08-29 Thread David Edelsohn
> Razya Ladelsky writes: Razya> When passing an address of a local variable as the first argument of Razya> 'sync_fetch_and_add' Razya> I get an error of unrecognizable insn. Razya> Does anyone know why that happens? Probably a mistake in the rs6000_emit_rsync() procedure. David

Re: sync_fetch_and_add creating unrecognizable insn

2007-08-29 Thread David Daney
Razya Ladelsky wrote: Hi, When passing an address of a local variable as the first argument of 'sync_fetch_and_add' I get an error of unrecognizable insn. For example, the test below (extracted from gcc.c-torture/compile/sync-1.c) fails on powerpc. If however, 'uc' was a global variable, the

sync_fetch_and_add creating unrecognizable insn

2007-08-29 Thread Razya Ladelsky
Hi, When passing an address of a local variable as the first argument of 'sync_fetch_and_add' I get an error of unrecognizable insn. For example, the test below (extracted from gcc.c-torture/compile/sync-1.c) fails on powerpc. If however, 'uc' was a global variable, the compilation passed perfe