aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-05-19 16:46:16 +0000
committerNick Clifton <nickc@redhat.com>2012-05-19 16:46:16 +0000
commita6ff997ce8307ea4be649d4e8de0c07d21048a30 (patch)
tree64064d6f1b0e3ebff2d0f0bea09a8201f91370d7 /sim/common
parentf06b801f6696ae159044d9aca903224f929a0e4f (diff)
downloadgdb-a6ff997ce8307ea4be649d4e8de0c07d21048a30.zip
gdb-a6ff997ce8307ea4be649d4e8de0c07d21048a30.tar.gz
gdb-a6ff997ce8307ea4be649d4e8de0c07d21048a30.tar.bz2
PR 14072
* wrapper.c: Include config.h before system header files. * callback.c: Include config.h before system header files. * cgen-trace.c: Likewise. * cgen-utils.c: Likewise. * gentmap.c: Likewise. * sim-if.c: Include config.h before system header files. * compile.c: Include config.h before system header files. * sim-main.h: Likewise. * gdb-if.c: Include config.h before system header files. * load.c: Likewise. * syscalls.c: Likewise. * trace.c: Likewise. * interp.c: Include config.h before system header files.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog8
-rw-r--r--sim/common/callback.c1
-rw-r--r--sim/common/cgen-trace.c1
-rw-r--r--sim/common/cgen-utils.c1
-rw-r--r--sim/common/gentmap.c1
5 files changed, 12 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index c4b95cf..71af5ac 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,11 @@
+2012-05-18 Nick Clifton <nickc@redhat.com>
+
+ PR 14072
+ * callback.c: Include config.h before system header files.
+ * cgen-trace.c: Likewise.
+ * cgen-utils.c: Likewise.
+ * gentmap.c: Likewise.
+
2012-04-02 Mike Frysinger <vapier@gentoo.org>
* hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
diff --git a/sim/common/callback.c b/sim/common/callback.c
index 8a2abd0..7779489 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -24,6 +24,7 @@
#ifdef HAVE_CONFIG_H
#include "cconfig.h"
#endif
+#include "config.h"
#include "ansidecl.h"
#include <stdarg.h>
#include <stdio.h>
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index ea71ecf..754038d 100644
--- a/sim/common/cgen-trace.c
+++ b/sim/common/cgen-trace.c
@@ -17,6 +17,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "config.h"
#include <errno.h>
#include "dis-asm.h"
#include "bfd.h"
diff --git a/sim/common/cgen-utils.c b/sim/common/cgen-utils.c
index 2c84c5a..daeb181 100644
--- a/sim/common/cgen-utils.c
+++ b/sim/common/cgen-utils.c
@@ -17,6 +17,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "config.h"
#include "bfd.h"
#include "sim-main.h"
#include "dis-asm.h"
diff --git a/sim/common/gentmap.c b/sim/common/gentmap.c
index a4d3713..7efc6d3 100644
--- a/sim/common/gentmap.c
+++ b/sim/common/gentmap.c
@@ -66,6 +66,7 @@ gen_targ_map_c ()
printf ("/* Target value mapping utilities needed by the simulator and gdb. */\n");
printf ("/* This file is machine generated by gentmap.c. */\n\n");
+ printf ("#include \"config.h\"\n");
printf ("#include <errno.h>\n");
printf ("#include <fcntl.h>\n");
printf ("#include \"ansidecl.h\"\n");