From 605040b41ae0e2a7a2361b563f082a9ee7d9696f Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Fri, 25 Nov 2016 09:59:45 +0000 Subject: [PATCH] re PR ada/67205 (eliminate No_Implicit_Dynamic_Code restriction violations) PR ada/67205 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define. From-SVN: r242868 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1b18a47d856..4f37787861c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-25 Eric Botcazou + + PR ada/67205 + * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define. + 2016-11-25 Martin Jambor PR tree-optimization/70965 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index d6464c50430..0e83cb4d9c8 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -22488,6 +22488,10 @@ mips_promote_function_mode (const_tree type ATTRIBUTE_UNUSED, #undef TARGET_HARD_REGNO_SCRATCH_OK #define TARGET_HARD_REGNO_SCRATCH_OK mips_hard_regno_scratch_ok +/* The architecture reserves bit 0 for MIPS16 so use bit 1 for descriptors. */ +#undef TARGET_CUSTOM_FUNCTION_DESCRIPTORS +#define TARGET_CUSTOM_FUNCTION_DESCRIPTORS 2 + struct gcc_target targetm = TARGET_INITIALIZER; #include "gt-mips.h" -- 2.30.2