aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/vxworks.h
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@gcc.gnu.org>2018-09-21 13:09:51 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2018-09-21 13:09:51 +0000
commit5244089f1518bed96b73dfd52bbdc436f180696d (patch)
tree11df61031d7ba534f20094e2dd43d10fd1ff5b27 /gcc/config/vxworks.h
parent8d0ef282099ee0681222631bfb6421e28a177906 (diff)
downloadgcc-5244089f1518bed96b73dfd52bbdc436f180696d.zip
gcc-5244089f1518bed96b73dfd52bbdc436f180696d.tar.gz
gcc-5244089f1518bed96b73dfd52bbdc436f180696d.tar.bz2
Leverage cacheTextUpdate for __clear_cache on VxWorks
2018-09-21 Alexandre Oliva <oliva@adacore.com> libgcc/ * config/vxcache.c: New file. Provide __clear_cache, based on the cacheTextUpdate VxWorks service. * config/t-vxworks (LIB2ADD): Add vxcache.c. (LIB2FUNCS_EXCLUDE): Add _clear_cache. * config/t-vxwoks7: Likewise. gcc/ * config/vxworks.h (CLEAR_INSN_CACHE): #define to 1. From-SVN: r264479
Diffstat (limited to 'gcc/config/vxworks.h')
-rw-r--r--gcc/config/vxworks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index 214c616..3ed706e 100644
--- a/gcc/config/vxworks.h
+++ b/gcc/config/vxworks.h
@@ -206,6 +206,10 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority);
/* The diab linker does not handle .gnu_attribute sections. */
#undef HAVE_AS_GNU_ATTRIBUTE
+/* We provide our own version of __clear_cache in libgcc, using a separate C
+ file to facilitate #inclusion of VxWorks header files. */
+#define CLEAR_INSN_CACHE 1
+
/* Default dwarf control values, for non-gdb debuggers that come with
VxWorks. */