Code generation error under Mac OSX
Original Reporter info from Mantis: mftq75
-
Reporter name: C Western
Original Reporter info from Mantis: mftq75
- Reporter name: C Western
Description:
The attached file fails under -O3 -Cr; appears to be due to a code generation error in the OffsetOK routine. Code works fine elsewhere, and with less recent fpc trunk (2 months or so?)
Steps to reproduce:
fpc -O3 -Cr o3issue.lpr
Free Pascal Compiler version 2.7.1 [2014/02/03] for i386
Copyright (c) 1993-2013 by Florian Klaempfl and others
Target OS: Darwin for i386
Compiling o3issue.lpr
o3issue.lpr(76,11) Warning: Local variable "Itots" does not seem to be initialized
Assembling (pipe) o3issue.s
Linking o3issue
172 lines compiled, 0.1 sec
1 warning(s) issued
$ ./o3issue
An unhandled exception occurred at $00011F6A:
Exception: MakennTable: 2 8
$00011F6A
Mantis conversion info:
- Mantis ID: 25672
- OS: Darwin
- OS Build: OSX
- Build: fpc Trunk
- Platform: i386
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 26674 (#a1eb9a0f)