summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-25 21:21:54 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-03-25 21:21:54 +0000
commit56ad25ef66613e200cb06fab0c46ea93de8a2f73 (patch)
tree33d22c8221c48de877037874bfa8eea66ea20664 /dev-embedded/gpsim/files
parentfix invalid atoms (diff)
downloadgentoo-2-56ad25ef66613e200cb06fab0c46ea93de8a2f73.tar.gz
gentoo-2-56ad25ef66613e200cb06fab0c46ea93de8a2f73.tar.bz2
gentoo-2-56ad25ef66613e200cb06fab0c46ea93de8a2f73.zip
Add patch to build with GCC 4.1.
(Portage version: 2.1_pre6-r7)
Diffstat (limited to 'dev-embedded/gpsim/files')
-rw-r--r--dev-embedded/gpsim/files/gpsim-0.21.11-gcc41.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-embedded/gpsim/files/gpsim-0.21.11-gcc41.patch b/dev-embedded/gpsim/files/gpsim-0.21.11-gcc41.patch
new file mode 100644
index 000000000000..e49ae99d6f9c
--- /dev/null
+++ b/dev-embedded/gpsim/files/gpsim-0.21.11-gcc41.patch
@@ -0,0 +1,61 @@
+Index: gpsim-0.21.11/cli/ui_gpsim.cc
+===================================================================
+--- gpsim-0.21.11.orig/cli/ui_gpsim.cc
++++ gpsim-0.21.11/cli/ui_gpsim.cc
+@@ -34,7 +34,7 @@ public:
+ CGpsimUserInterface(const char *paStrings[]);
+ virtual ~CGpsimUserInterface() {}
+
+- void CGpsimUserInterface::SetStreams(FILE *in, FILE *out);
++ void SetStreams(FILE *in, FILE *out);
+ virtual ISimConsole &GetConsole();
+ virtual void DisplayMessage(unsigned int uStringID, ...);
+ virtual void DisplayMessage(FILE * pOut, unsigned int uStringID, ...);
+Index: gpsim-0.21.11/src/p12x.h
+===================================================================
+--- gpsim-0.21.11.orig/src/p12x.h
++++ gpsim-0.21.11/src/p12x.h
+@@ -108,7 +108,7 @@ class P12CE518 : public P12C508
+
+ virtual PROCESSOR_TYPE isa(void){return _P12CE518_;};
+ virtual void tris_instruction(unsigned int tris_register);
+- virtual void P12CE518::set_eeprom(I2C_EE *e);
++ virtual void set_eeprom(I2C_EE *e);
+
+ P12CE518(void);
+ static Processor *construct(void);
+Index: gpsim-0.21.11/src/value.h
+===================================================================
+--- gpsim-0.21.11.orig/src/value.h
++++ gpsim-0.21.11/src/value.h
+@@ -290,7 +290,7 @@ public:
+
+ bool getVal() { return value; }
+
+- static Boolean* Boolean::typeCheck(Value* val, string valDesc);
++ static Boolean* typeCheck(Value* val, string valDesc);
+ virtual bool compare(ComparisonOperator *compOp, Value *rvalue);
+
+ virtual Value *copy() { return new Boolean(value); }
+@@ -353,9 +353,9 @@ public:
+ virtual char *toString(char *, int len);
+ virtual char *toBitStr(char *, int len);
+
+- static Integer* Integer::typeCheck(Value* val, string valDesc);
+- static Integer* Integer::assertValid(Value* val, string valDesc, gint64 valMin);
+- static Integer* Integer::assertValid(Value* val, string valDesc, gint64 valMin, gint64 valMax);
++ static Integer* typeCheck(Value* val, string valDesc);
++ static Integer* assertValid(Value* val, string valDesc, gint64 valMin);
++ static Integer* assertValid(Value* val, string valDesc, gint64 valMin, gint64 valMax);
+ virtual bool compare(ComparisonOperator *compOp, Value *rvalue);
+
+ inline operator gint64() {
+@@ -498,7 +498,7 @@ public:
+ /// copy the object value to a user char array
+ virtual char *toString(char *, int len);
+
+- static AbstractRange* AbstractRange::typeCheck(Value* val, string valDesc);
++ static AbstractRange* typeCheck(Value* val, string valDesc);
+ virtual bool compare(ComparisonOperator *compOp, Value *rvalue);
+
+ private: