GCC: Get everything working with gcc 4.6.1.

And by "everything" I mean all the quick regressions.
This commit is contained in:
Gabe Black
2011-10-31 01:09:44 -07:00
parent ce2f9625f4
commit d735abe5da
29 changed files with 60 additions and 114 deletions

View File

@@ -164,6 +164,7 @@ class ParamDesc(object):
return self.ptype(value)
def cxx_predecls(self, code):
code('#include <cstddef>')
self.ptype.cxx_predecls(code)
def swig_predecls(self, code):

View File

@@ -94,10 +94,6 @@ int
connectPorts(SimObject *o1, const std::string &name1, int i1,
SimObject *o2, const std::string &name2, int i2)
{
MemObject *mo1, *mo2;
mo1 = dynamic_cast<MemObject*>(o1);
mo2 = dynamic_cast<MemObject*>(o2);
#if FULL_SYSTEM
EtherObject *eo1, *eo2;
EtherDevice *ed1, *ed2;