[PATCH][SH] PR52667, Fix for barrier insertion

2012-03-27 Thread Chung-Lin Tang
Hi Kaz, This patch fixes a case in sh.c:find_barrier(), triggered by a testcase in glibc. The scanning starts from a GOT move instruction, records itself in 'last_got', but does not find a second GOT move (to reset last_got to NULL). It finishes by trying to insert a new barrier in the insn

Re: [PATCH][SH] PR52667, Fix for barrier insertion

2012-03-27 Thread Kaz Kojima
Chung-Lin Tang clt...@codesourcery.com wrote: This patch fixes a case in sh.c:find_barrier(), triggered by a testcase in glibc. The scanning starts from a GOT move instruction, records itself in 'last_got', but does not find a second GOT move (to reset last_got to NULL). It finishes by