After revision 34788 a project compiled with -Co gives Overflow
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
After revision 34788 a project compiled with -Co gives Arithmetic Overflow.
Revision 34787 works fine.
Revision 34788 - 34792 I can't build.
Revision 34793 - 34845 gives that Arithmetic Overflow.
Steps to reproduce:
Try to compile that project:
program project1;
var
c: Cardinal;
i: Integer;
begin
i := 1;
for c := 0 to i do
WriteLn(i);
end.
Additional information:
This work:
fpc project1.pas -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq
This doesn't work:
fpc project1.pas -MObjFPC -Scghi -Co -O1 -g -gl -l -vewnhibq
A test project added.
Just as Hint: That is the reason, that Lazarus couldn't be build with debug info.
Mantis conversion info:
- Mantis ID: 30889
- OS: 7
- OS Build: 32bit
- Build: 34845
- Platform: Windows
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 34896 (#6d6a45c0)