GCC 7.2.1 with LTO produces invalid assembler code
I've got the following error at linking time when compiling FreeRTOS with -flto:
GNU assembler version 2.29.51 (arm-none-eabi) using BFD version (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 2.29.51.20171128
/tmp/ccXrBd4D.s: Assembler messages:
/tmp/ccXrBd4D.s:27: Error: offset out of range
lto-wrapper: fatal error: arm-none-eabi-gcc returned 1 exit status
compilation terminated.
The line 27 of the assembler code is:
The same source code is successfully compiled and linked by the previous ARM GCC release (6-2017-q2-update). It also compiles and runs when compiled without LTO mode.
Shall I file a bug report ?
(The bug-reporting page insists that I shall first post my problem here, so here you are.)
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask aoandr for more information if necessary.