From 9a4d502421c7469369d863226f03d197bfa2cb13 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 4 Feb 2020 09:23:22 +0100 Subject: [PATCH] Fix release checking build of ARM. * config/arm/arm.c (arm_gen_far_branch): Move the function outside of selftests. --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.c | 41 ++++++++++++++++++++--------------------- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 350f18d1161..59d606b8645 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-02-04 Martin Liska + + * config/arm/arm.c (arm_gen_far_branch): Move the function + outside of selftests. + 2020-02-03 Michael Meissner * config/rs6000/rs6000.c (adjust_vec_address_pcrel): New helper diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index b5ae7e3e9ce..fe3bc675b42 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -33041,6 +33041,26 @@ arm_run_selftests (void) } } /* Namespace selftest. */ +#undef TARGET_RUN_TARGET_SELFTESTS +#define TARGET_RUN_TARGET_SELFTESTS selftest::arm_run_selftests +#endif /* CHECKING_P */ + +/* Worker function for TARGET_MD_ASM_ADJUST, while in thumb1 mode. + Unlike the arm version, we do NOT implement asm flag outputs. */ + +rtx_insn * +thumb1_md_asm_adjust (vec &outputs, vec &/*inputs*/, + vec &constraints, + vec &/*clobbers*/, HARD_REG_SET &/*clobbered_regs*/) +{ + for (unsigned i = 0, n = outputs.length (); i < n; ++i) + if (strncmp (constraints[i], "=@cc", 4) == 0) + { + sorry ("asm flags not supported in thumb1 mode"); + break; + } + return NULL; +} /* Generate code to enable conditional branches in functions over 1 MiB. Parameters are: @@ -33075,27 +33095,6 @@ arm_gen_far_branch (rtx * operands, int pos_label, const char * dest, return ""; } -#undef TARGET_RUN_TARGET_SELFTESTS -#define TARGET_RUN_TARGET_SELFTESTS selftest::arm_run_selftests -#endif /* CHECKING_P */ - -/* Worker function for TARGET_MD_ASM_ADJUST, while in thumb1 mode. - Unlike the arm version, we do NOT implement asm flag outputs. */ - -rtx_insn * -thumb1_md_asm_adjust (vec &outputs, vec &/*inputs*/, - vec &constraints, - vec &/*clobbers*/, HARD_REG_SET &/*clobbered_regs*/) -{ - for (unsigned i = 0, n = outputs.length (); i < n; ++i) - if (strncmp (constraints[i], "=@cc", 4) == 0) - { - sorry ("asm flags not supported in thumb1 mode"); - break; - } - return NULL; -} - struct gcc_target targetm = TARGET_INITIALIZER; #include "gt-arm.h" -- 2.30.2