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: Wed, 16 Aug 2017 22:45:15 +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
Arnd Bergmann <arnd at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work|6.3.1 |
--- Comment #1 from Arnd Bergmann <arnd at linaro dot org> ---
I originally couldn't reproduce this on gcc-6, but now I found another file
that shows very similar behavior with gcc-6.3.1 but not gcc-5 or gcc-7. In that
case we increment a global variable "cell->id = cmodio_id++;", reading the
variable uses a relative relocation, but writing it back uses
R_ARM_MOVW_ABS_NC.