summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/sdcc/distinfo3
-rw-r--r--devel/sdcc/patches/patch-aa76
2 files changed, 78 insertions, 1 deletions
diff --git a/devel/sdcc/distinfo b/devel/sdcc/distinfo
index 325d8ce0a74..077058fd12e 100644
--- a/devel/sdcc/distinfo
+++ b/devel/sdcc/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.11 2005/02/23 22:24:33 agc Exp $
+$NetBSD: distinfo,v 1.12 2005/12/01 19:43:23 joerg Exp $
SHA1 (sdcc-2.4.0.tar.gz) = 3ce83ec60417ac6cdffb1668679cb4eeae6c3941
RMD160 (sdcc-2.4.0.tar.gz) = 807aaa5166e143d3793a66b620ccde40d0c83260
Size (sdcc-2.4.0.tar.gz) = 3021296 bytes
+SHA1 (patch-aa) = aab98c3b7bbcf66c84469ef832a165af60edbf74
diff --git a/devel/sdcc/patches/patch-aa b/devel/sdcc/patches/patch-aa
new file mode 100644
index 00000000000..bada1a6d836
--- /dev/null
+++ b/devel/sdcc/patches/patch-aa
@@ -0,0 +1,76 @@
+$NetBSD: patch-aa,v 1.7 2005/12/01 19:43:23 joerg Exp $
+
+--- sim/ucsim/avr.src/arith_inst.cc.orig 2005-12-01 19:22:22.000000000 +0000
++++ sim/ucsim/avr.src/arith_inst.cc
+@@ -51,7 +51,7 @@ cl_avr::cpi_Rd_K(t_mem code)
+ if (D & 0x80)
+ D|= ~0xff;
+ t_mem sreg= ram->get(SREG);
+- (signed)result= (signed)D-(signed)K;
++ result= (signed)D-(signed)K;
+ res= result & 0xff;
+
+ sreg= sreg & ~(BIT_H|BIT_S|BIT_V|BIT_N|BIT_C|BIT_Z);
+@@ -101,7 +101,7 @@ cl_avr::sbci_Rd_K(t_mem code)
+ if (D & 0x80)
+ D|= ~0xff;
+ t_mem sreg= ram->get(SREG);
+- (signed)result= (signed)D-(signed)K-(sreg&BIT_C)?1:0;
++ result= (signed)D-(signed)K-(sreg&BIT_C)?1:0;
+ res= result & 0xff;
+ ram->write(d, res);
+
+@@ -151,7 +151,7 @@ cl_avr::subi_Rd_K(t_mem code)
+ K|= ~0xff;
+ if (D & 0x80)
+ D|= ~0xff;
+- (signed)result= (signed)D-(signed)K;
++ result= (signed)D-(signed)K;
+ res= result & 0xff;
+ ram->write(d, res);
+
+@@ -237,7 +237,7 @@ cl_avr::cpc_Rd_Rr(t_mem code)
+ if (D & 0x80)
+ D|= ~0xff;
+ t_mem sreg= ram->get(SREG);
+- (signed)result= (signed)D-(signed)R-(sreg&BIT_C)?1:0;
++ result= (signed)D-(signed)R-(sreg&BIT_C)?1:0;
+ res= result & 0xff;
+
+ sreg= sreg & ~(BIT_H|BIT_S|BIT_V|BIT_N|BIT_C);
+@@ -287,7 +287,7 @@ cl_avr::sbc_Rd_Rr(t_mem code)
+ if (D & 0x80)
+ D|= ~0xff;
+ t_mem sreg= ram->get(SREG);
+- (signed)result= (signed)D-(signed)R-(sreg&BIT_C)?1:0;
++ result= (signed)D-(signed)R-(sreg&BIT_C)?1:0;
+ res= result & 0xff;
+ ram->write(d, res);
+
+@@ -389,7 +389,7 @@ cl_avr::cp_Rd_Rr(t_mem code)
+ R|= ~0xff;
+ if (D & 0x80)
+ D|= ~0xff;
+- (signed)result= (signed)D-(signed)R;
++ result= (signed)D-(signed)R;
+ res= result & 0xff;
+
+ t_mem sreg= ram->get(SREG) & ~(BIT_H|BIT_S|BIT_V|BIT_N|BIT_Z|BIT_C);
+@@ -438,7 +438,7 @@ cl_avr::sub_Rd_Rr(t_mem code)
+ R|= ~0xff;
+ if (D & 0x80)
+ D|= ~0xff;
+- (signed)result= (signed)D-(signed)R;
++ result= (signed)D-(signed)R;
+ res= result & 0xff;
+ ram->write(d, res);
+
+@@ -922,7 +922,7 @@ cl_avr::sbiw_Rdl_K(t_mem code)
+ K|= ~0x3f;
+ if (D & 0x8000)
+ D|= ~0xffff;
+- (signed)result= (signed)D-(signed)K;
++ result= (signed)D-(signed)K;
+ res= result & 0xffff;
+ t_mem resl= res&0xff, resh= (res>>8)&0xff;
+ ram->write(dl+1, resh);