diff options
author | Olivier Hainque <hainque@gcc.gnu.org> | 2018-09-21 13:09:51 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@gcc.gnu.org> | 2018-09-21 13:09:51 +0000 |
commit | 5244089f1518bed96b73dfd52bbdc436f180696d (patch) | |
tree | 11df61031d7ba534f20094e2dd43d10fd1ff5b27 /gcc | |
parent | 8d0ef282099ee0681222631bfb6421e28a177906 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/vxworks.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 011d933..b72c326 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2018-09-21 Olivier Hainque <hainque@adacore.com> + * config/vxworks.h (CLEAR_INSN_CACHE): #define to 1. + +2018-09-21 Olivier Hainque <hainque@adacore.com> + * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Remove -lc_internal. Merge block comment with the one ahead of VXWORKS_LIBS_RTP. Then: (VXWORKS_LIBS_RTP): Minor reordering. 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. */ |