pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/sdcc Remove left hand side casts, they are usele...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7db2973e45be
branches:  trunk
changeset: 503907:7db2973e45be
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Dec 01 19:43:23 2005 +0000

description:
Remove left hand side casts, they are useless and a GCC extension not
supported with GCC 3.4+.

diffstat:

 devel/sdcc/distinfo         |   3 +-
 devel/sdcc/patches/patch-aa |  76 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+), 1 deletions(-)

diffs (91 lines):

diff -r a3e0271ea71d -r 7db2973e45be devel/sdcc/distinfo
--- a/devel/sdcc/distinfo       Thu Dec 01 19:33:10 2005 +0000
+++ b/devel/sdcc/distinfo       Thu Dec 01 19:43:23 2005 +0000
@@ -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 -r a3e0271ea71d -r 7db2973e45be devel/sdcc/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/sdcc/patches/patch-aa       Thu Dec 01 19:43:23 2005 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index