Xtensa - Compiler exception when compiling math.pp with -O1
Original Reporter info from Mantis: ccrause @ccrause
-
Reporter name: Christo Crause
Original Reporter info from Mantis: ccrause @ccrause
- Reporter name: Christo Crause
Description:
Problem appears when building freertos RTL with -O1, there seems to be a range error in TAOptObj.ExcludeRegFromUsedRegs. See steps to reproduce for command line to reproduce problem.
Steps to reproduce:
cd ~/fpc/3.3.1/rtl/freertos
/home/christo/fpc/3.3.1/compiler/xtensa/pp -Tfreertos -Pxtensa -XPxtensa-esp32-elf- -Xr -Fi../inc -Fi../xtensa -FE. -FU../../rtl/units/xtensa-freertos -Cawindowed -CfHARD -O1 -dxtensa ../objpas/math.pp
math.pp(711,1) Error: Compilation raised exception internally
Fatal: Compilation aborted
An unhandled exception occurred at $0000000000616EC9:
EAccessViolation: Access violation<br/>
$0000000000616EC9 line 1165 of aoptobj.pas
$00000000005DFC00 line 237 of aopt.pas
$00000000005DFD02 line 269 of aopt.pas
$00000000005DFD41 line 280 of aopt.pas
$00000000005E0176 line 396 of aopt.pas
Mantis conversion info:
- Mantis ID: 36889
- Build: 44654
- Version: 3.3.1
- Fixed in version: 3.3.1