I needed to apply the attached patch for ia16, so that
__LIBGCC_JCR_SECTION_NAME__ does not get defined unless
TARGET_USE_JCR_SECTION is.
2017-04-01 Andrew Jenner <and...@codesourcery.com>
* c-family/g-cppbuiltin.c (c_cpp_builtins): guard
__LIBGCC_JCR_SECTION_NAME__ definition with TARGET_USE_JCR_SECTION.
Index: gcc/c-family/c-cppbuiltin.c
===================================================================
--- gcc/c-family/c-cppbuiltin.c (revision 475331)
+++ gcc/c-family/c-cppbuiltin.c (revision 475455)
@@ -1119,10 +1119,12 @@ c_cpp_builtins (cpp_reader *pfile)
builtin_define_with_value ("__LIBGCC_EH_FRAME_SECTION_NAME__",
EH_FRAME_SECTION_NAME, 1);
#endif
+#if TARGET_USE_JCR_SECTION
#ifdef JCR_SECTION_NAME
builtin_define_with_value ("__LIBGCC_JCR_SECTION_NAME__",
JCR_SECTION_NAME, 1);
#endif
+#endif
#ifdef CTORS_SECTION_ASM_OP
builtin_define_with_value ("__LIBGCC_CTORS_SECTION_ASM_OP__",
CTORS_SECTION_ASM_OP, 1);