This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81863] [7 regression] -mword-relocations is unreliable
- From: "arnd at linaro dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Aug 2017 09:28:45 +0000
- Subject: [Bug target/81863] [7 regression] -mword-relocations is unreliable
- Auto-submitted: auto-generated
- References: <bug-81863-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81863
--- Comment #10 from Arnd Bergmann <arnd at linaro dot org> ---
(In reply to Yvan Roux from comment #8)
>
> /* Nonzero if this chip provides the MOVW and MOVT instructions. */
> -#define TARGET_HAVE_MOVT (arm_arch_thumb2 || arm_arch8)
> +#define TARGET_HAVE_MOVT ((arm_arch_thumb2 || arm_arch8) \
> + && !target_word_relocations)
Confirmed, this addresses the link error for all kernel configurations for me
on gcc-7-branch (eight failing random configurations out of ~1000, failing in
five different source files without this patch).