This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/81863] [7 regression] -mword-relocations is unreliable


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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]