Hello, This fixes a build failure observed during aarch64 port development effort, corresponds to the intent on this target (we still want to use the vxworks specific definition), and I checked that I could still build a function powerpc-vxworks toolchain after the patch.
Olivier 2018-10-29 Olivier Hainque <hain...@adacore.com> * config/vxworks.h (CLEAR_INSN_CACHE): #undef before #define.
From b3eb3ee44716e1c5336b7b86a4f03746d04d4493 Mon Sep 17 00:00:00 2001 From: Olivier Hainque <hain...@adacore.com> Date: Fri, 26 Oct 2018 18:44:52 +0200 Subject: [PATCH 2/4] Undef CLEAR_INSN_CACHE before #define in vxworks.h --- gcc/config/vxworks.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index 3e5506e..2e2ab6c 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -209,6 +209,7 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority); /* We provide our own version of __clear_cache in libgcc, using a separate C file to facilitate #inclusion of VxWorks header files. */ +#undef CLEAR_INSN_CACHE #define CLEAR_INSN_CACHE 1 /* Default dwarf control values, for non-gdb debuggers that come with -- 1.7.10.4