From 0018d7b92020a645d971db452c5da1e3d31e73b2 Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 6 Jul 2006 18:54:19 +0000 Subject: [PATCH] * final fix for overflow checking for ARM. git-svn-id: trunk@4103 - --- compiler/arm/cgcpu.pas | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/arm/cgcpu.pas b/compiler/arm/cgcpu.pas index 87d84e1232..ba4fa1bde1 100644 --- a/compiler/arm/cgcpu.pas +++ b/compiler/arm/cgcpu.pas @@ -1663,8 +1663,7 @@ unit cgcpu; LOC_FLAGS: begin hflags:=ovloc.resflags; - if not (hflags in [F_CS,F_CC]) then - inverse_flags(hflags); + inverse_flags(hflags); cg.a_jmp_flags(list,hflags,hl); end; else @@ -1963,9 +1962,9 @@ unit cgcpu; ovloc.loc:=LOC_FLAGS; case op of OP_ADD: - ovloc.resflags:=F_CC; - OP_SUB: ovloc.resflags:=F_CS; + OP_SUB: + ovloc.resflags:=F_CC; end; end; end