RISC-V: Finish Ada port.
authorJim Wilson <jimw@sifive.com>
Sat, 7 Jul 2018 15:59:27 +0000 (15:59 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Sat, 7 Jul 2018 15:59:27 +0000 (08:59 -0700)
gcc/
* config/riscv/riscv.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): New.

From-SVN: r262501

gcc/ChangeLog
gcc/config/riscv/riscv.c

index 350ebf518c5ec37b3a0ae7391d750a9776260efc..8966da1051bd11021254e9c0ca1bbd83f7c164a4 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-07  Jim Wilson  <jimw@sifive.com>
+
+       * config/riscv/riscv.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): New.
+
 2018-07-07  Tom de Vries  <tdevries@suse.de>
 
        * tree-dfa.c (dump_enumerated_decls): Handle cfun->cfg == NULL.
index d87836f53f859e58db0bb8ecfd06df70fd9b5ad3..218f4de7d415611af7281804bcdb00a47505c93d 100644 (file)
@@ -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"