diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9bef97dff15..6a14c5419ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-11-20 Richard Henderson + + * config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs. + 2011-11-20 Uros Bizjak PR target/51235 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index ff72e28a35c..75e73bda2a1 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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. */