aboutsummaryrefslogtreecommitdiff
path: root/gcc/libfuncs.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-06-26 21:28:30 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2008-06-26 21:28:30 +0000
commite2ff10a93c232352cd9d648baa1070d2982f18cb (patch)
treeb243da2903826b74d9af4b244282d7635346588d /gcc/libfuncs.h
parentf78c3290cdcd5328d1924935806f8ef24d7f7788 (diff)
downloadgcc-e2ff10a93c232352cd9d648baa1070d2982f18cb.zip
gcc-e2ff10a93c232352cd9d648baa1070d2982f18cb.tar.gz
gcc-e2ff10a93c232352cd9d648baa1070d2982f18cb.tar.bz2
libfuncs.h (LTI_synchronize): New libfunc_index.
gcc/ * libfuncs.h (LTI_synchronize): New libfunc_index. (synchronize_libfunc): Declare. * builtins.c (expand_builtin_synchronize): Consider using synchronize_libfunc before falling back on an asm blockage. * config/mips/mips.c: Include libfuncs.h (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16. From-SVN: r137162
Diffstat (limited to 'gcc/libfuncs.h')
-rw-r--r--gcc/libfuncs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/libfuncs.h b/gcc/libfuncs.h
index f7f6a62..ef636da 100644
--- a/gcc/libfuncs.h
+++ b/gcc/libfuncs.h
@@ -40,6 +40,8 @@ enum libfunc_index
LTI_profile_function_entry,
LTI_profile_function_exit,
+ LTI_synchronize,
+
LTI_gcov_flush,
LTI_MAX
@@ -69,6 +71,8 @@ extern GTY(()) rtx libfunc_table[LTI_MAX];
#define profile_function_entry_libfunc (libfunc_table[LTI_profile_function_entry])
#define profile_function_exit_libfunc (libfunc_table[LTI_profile_function_exit])
+#define synchronize_libfunc (libfunc_table[LTI_synchronize])
+
#define gcov_flush_libfunc (libfunc_table[LTI_gcov_flush])
#endif /* GCC_LIBFUNCS_H */