From 11fcb8f2a69bfdeeafc4b0594b71b85d4e285242 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Sat, 7 Jul 2018 15:59:27 +0000 Subject: [PATCH] RISC-V: Finish Ada port. gcc/ * config/riscv/riscv.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): New. From-SVN: r262501 --- gcc/ChangeLog | 4 ++++ gcc/config/riscv/riscv.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 350ebf518c5..8966da1051b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-07-07 Jim Wilson + + * config/riscv/riscv.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): New. + 2018-07-07 Tom de Vries * tree-dfa.c (dump_enumerated_decls): Handle cfun->cfg == NULL. diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c index d87836f53f8..218f4de7d41 100644 --- a/gcc/config/riscv/riscv.c +++ b/gcc/config/riscv/riscv.c @@ -4786,6 +4786,10 @@ riscv_constant_alignment (const_tree exp, HOST_WIDE_INT align) #undef TARGET_WARN_FUNC_RETURN #define TARGET_WARN_FUNC_RETURN riscv_warn_func_return +/* The low bit is ignored by jump instructions so is safe to use. */ +#undef TARGET_CUSTOM_FUNCTION_DESCRIPTORS +#define TARGET_CUSTOM_FUNCTION_DESCRIPTORS 1 + struct gcc_target targetm = TARGET_INITIALIZER; #include "gt-riscv.h" -- 2.30.2