Package: fp-compiler
Version: 2.0.0-4
Severity: important
Using -O2 produces invalid code. demonstration programm included.
Expected output "5 2", but with -O2 the program results "5 5"
the problem is fixed in 2.0.4.
code:
----------------------
var x,y,r,s,v : integer;
begin
r:=3; v:=5; s:=7;
if s <= v then begin
x := s; y := 1;
end else if (s - v) <= r then begin
x := v; y := s - v;
end;
writeln(x, ' ', y);
end.
---------------------
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.20-grsec
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15
(charmap=ISO-8859-15)
Versions of packages fp-compiler depends on:
ii fp-units-rtl 2.0.0-4 Free Pascal -- Runtime
Library
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]