mips: Install the __sync libfuncs for mips16

* config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs.

From-SVN: r181539
This commit is contained in:
Richard Henderson 2011-11-20 15:16:30 -08:00 committed by Richard Henderson
parent fcb13a10e4
commit 722d8b7b38
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2011-11-20 Richard Henderson <rth@redhat.com>
* config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs.
2011-11-20 Uros Bizjak <ubizjak@gmail.com>
PR target/51235

View File

@ -11218,9 +11218,13 @@ mips_init_libfuncs (void)
}
/* The MIPS16 ISA does not have an encoding for "sync", so we rely
on an external non-MIPS16 routine to implement __sync_synchronize. */
on an external non-MIPS16 routine to implement __sync_synchronize.
Similarly for the rest of the ll/sc libfuncs. */
if (TARGET_MIPS16)
synchronize_libfunc = init_one_libfunc ("__sync_synchronize");
{
synchronize_libfunc = init_one_libfunc ("__sync_synchronize");
init_sync_libfuncs (UNITS_PER_WORD);
}
}
/* Build up a multi-insn sequence that loads label TARGET into $AT. */