aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-07-29 01:54:31 +0800
committerpav <pav@FreeBSD.org>2004-07-29 01:54:31 +0800
commitb4f70500b9d0520b5827feb472aadaeea07d0f55 (patch)
tree5942f98bf7d2445e4c5bebf064e3d8216db009f9 /lang
parent3fe3d9a865c8744eb8834e286b28488696a97170 (diff)
downloadfreebsd-ports-gnome-b4f70500b9d0520b5827feb472aadaeea07d0f55.tar.gz
freebsd-ports-gnome-b4f70500b9d0520b5827feb472aadaeea07d0f55.tar.zst
freebsd-ports-gnome-b4f70500b9d0520b5827feb472aadaeea07d0f55.zip
- Fix build with gcc-3.3:
error: ISO C++ forbids cast to non-reference type used as lvalue PR: ports/69653 Submitted by: Tijl Coosemans <tijl@ulyssis.org> (maintainer)
Diffstat (limited to 'lang')
-rw-r--r--lang/sdcc-devel/files/patch-sim-ucsim-avr.src-arith_inst.cc74
-rw-r--r--lang/sdcc/files/patch-sim-ucsim-avr.src-arith_inst.cc74
2 files changed, 148 insertions, 0 deletions
diff --git a/lang/sdcc-devel/files/patch-sim-ucsim-avr.src-arith_inst.cc b/lang/sdcc-devel/files/patch-sim-ucsim-avr.src-arith_inst.cc
new file mode 100644
index 000000000000..cc29ae93bfe2
--- /dev/null
+++ b/lang/sdcc-devel/files/patch-sim-ucsim-avr.src-arith_inst.cc
@@ -0,0 +1,74 @@
+--- sim/ucsim/avr.src/arith_inst.cc.orig Tue Jul 27 11:05:50 2004
++++ sim/ucsim/avr.src/arith_inst.cc Tue Jul 27 11:09:08 2004
+@@ -51,7 +51,7 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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);
diff --git a/lang/sdcc/files/patch-sim-ucsim-avr.src-arith_inst.cc b/lang/sdcc/files/patch-sim-ucsim-avr.src-arith_inst.cc
new file mode 100644
index 000000000000..cc29ae93bfe2
--- /dev/null
+++ b/lang/sdcc/files/patch-sim-ucsim-avr.src-arith_inst.cc
@@ -0,0 +1,74 @@
+--- sim/ucsim/avr.src/arith_inst.cc.orig Tue Jul 27 11:05:50 2004
++++ sim/ucsim/avr.src/arith_inst.cc Tue Jul 27 11:09:08 2004
+@@ -51,7 +51,7 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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 @@
+ 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);