Add some pdp11 target hook definitions for C++

* config/pdp11/pdp11.c (TARGET_CXX_GUARD_TYPE): Define.
    (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define.
    (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
    (pdp11_guard_type): New function.

From-SVN: r264883
This commit is contained in:
Paul Koning 2018-10-05 14:08:34 -04:00 committed by Paul Koning
parent 7fc9c2e52f
commit 7717110a42
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2018-10-05 Paul Koning <ni1d@arrl.net>
* config/pdp11/pdp11.c (TARGET_CXX_GUARD_TYPE): Define.
(TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define.
(TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
(pdp11_guard_type): New function.
2018-10-05 Paul Koning <ni1d@arrl.net>
* config/pdp11/pdp11.h (FLOAT_TYPE_SIZE): Always 32.

View File

@ -292,6 +292,15 @@ static bool pdp11_scalar_mode_supported_p (scalar_mode);
#undef TARGET_INVALID_WITHIN_DOLOOP
#define TARGET_INVALID_WITHIN_DOLOOP hook_constcharptr_const_rtx_insn_null
#undef TARGET_CXX_GUARD_TYPE
#define TARGET_CXX_GUARD_TYPE pdp11_guard_type
#undef TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT
#define TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT hook_bool_void_false
#undef TARGET_CXX_LIBRARY_RTTI_COMDAT
#define TARGET_CXX_LIBRARY_RTTI_COMDAT hook_bool_void_false
#undef TARGET_HAVE_SPECULATION_SAFE_VALUE
#define TARGET_HAVE_SPECULATION_SAFE_VALUE speculation_safe_value_not_needed
@ -1702,6 +1711,13 @@ pdp11_can_change_mode_class (machine_mode from,
return !reg_classes_intersect_p (FPU_REGS, rclass);
}
/* Implement TARGET_CXX_GUARD_TYPE */
static tree
pdp11_guard_type (void)
{
return short_integer_type_node;
}
/* TARGET_PREFERRED_RELOAD_CLASS
Given an rtx X being reloaded into a reg required to be