Fix reported build errors with gcc 4.3
Add missing includes to cstring et al.
This commit is contained in:
parent
4d3f592b5f
commit
d49e44594b
|
|
@ -28,6 +28,7 @@
|
||||||
# include "compiler.h"
|
# include "compiler.h"
|
||||||
|
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is a state flag that determines whether an elaborate_net must
|
* This is a state flag that determines whether an elaborate_net must
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
# include "compiler.h"
|
# include "compiler.h"
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Elaboration happens in two passes, generally. The first scans the
|
* Elaboration happens in two passes, generally. The first scans the
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
|
# include <cstdlib>
|
||||||
|
|
||||||
# include "Module.h"
|
# include "Module.h"
|
||||||
# include "PExpr.h"
|
# include "PExpr.h"
|
||||||
|
|
|
||||||
1
emit.cc
1
emit.cc
|
|
@ -32,6 +32,7 @@
|
||||||
# include "netlist.h"
|
# include "netlist.h"
|
||||||
# include <typeinfo>
|
# include <typeinfo>
|
||||||
# include <cassert>
|
# include <cassert>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
bool NetNode::emit_node(struct target_t*tgt) const
|
bool NetNode::emit_node(struct target_t*tgt) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@
|
||||||
# include <dirent.h>
|
# include <dirent.h>
|
||||||
# include <ctype.h>
|
# include <ctype.h>
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
|
# include <cstdlib>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The module library items are maps of key names to file name within
|
* The module library items are maps of key names to file name within
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
# include "util.h"
|
# include "util.h"
|
||||||
# include "compiler.h"
|
# include "compiler.h"
|
||||||
# include <sstream>
|
# include <sstream>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
Design:: Design()
|
Design:: Design()
|
||||||
: errors(0), nodes_(0), procs_(0), lcounter_(0)
|
: errors(0), nodes_(0), procs_(0), lcounter_(0)
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
# include "netlist.h"
|
# include "netlist.h"
|
||||||
# include <sstream>
|
# include <sstream>
|
||||||
# include <string>
|
# include <string>
|
||||||
|
# include <cstring>
|
||||||
# include <typeinfo>
|
# include <typeinfo>
|
||||||
#ifdef HAVE_MALLOC_H
|
#ifdef HAVE_MALLOC_H
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
# include "netlist.h"
|
# include "netlist.h"
|
||||||
# include <sstream>
|
# include <sstream>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The NetScope class keeps a scope tree organized. Each node of the
|
* The NetScope class keeps a scope tree organized. Each node of the
|
||||||
|
|
|
||||||
2
pform.h
2
pform.h
|
|
@ -37,6 +37,8 @@
|
||||||
# include <string>
|
# include <string>
|
||||||
# include <list>
|
# include <list>
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
|
# include <cstring>
|
||||||
|
# include <cstdlib>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These classes implement the parsed form (P-form for short) of the
|
* These classes implement the parsed form (P-form for short) of the
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include "NetLatch.h"
|
#include "NetLatch.h"
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
#include <new> // standard operator new
|
#include <new> // standard operator new
|
||||||
using std::bad_alloc;
|
using std::bad_alloc;
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
# include "compiler.h"
|
# include "compiler.h"
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
|
# include <cstdlib>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Manage the information about system functions. This information is
|
* Manage the information about system functions. This information is
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,8 @@
|
||||||
#ifdef HAVE_MALLOC_H
|
#ifdef HAVE_MALLOC_H
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
# include <stdlib.h>
|
# include <cstdlib>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is a little convenience function for converting a NetExpr
|
* This is a little convenience function for converting a NetExpr
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,8 @@
|
||||||
#ifdef HAVE_MALLOC_H
|
#ifdef HAVE_MALLOC_H
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
# include <stdlib.h>
|
# include <cstdlib>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
|
|
||||||
bool dll_target::process(const NetProcTop*net)
|
bool dll_target::process(const NetProcTop*net)
|
||||||
|
|
|
||||||
3
t-dll.cc
3
t-dll.cc
|
|
@ -31,7 +31,8 @@
|
||||||
#ifdef HAVE_MALLOC_H
|
#ifdef HAVE_MALLOC_H
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
# include <stdlib.h>
|
# include <cstdlib>
|
||||||
|
# include <cstring>
|
||||||
|
|
||||||
#include <new> // standard operator new
|
#include <new> // standard operator new
|
||||||
using std::bad_alloc;
|
using std::bad_alloc;
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,8 @@
|
||||||
|
|
||||||
# include "verireal.h"
|
# include "verireal.h"
|
||||||
# include "verinum.h"
|
# include "verinum.h"
|
||||||
# include <stdlib.h>
|
# include <cstdlib>
|
||||||
|
# include <cstring>
|
||||||
# include <ctype.h>
|
# include <ctype.h>
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
# include <math.h>
|
# include <math.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue