This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] sim/mcore/interp.c: Include "unistd.h".
- From: Chen Gang <gchen at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 11 Feb 2015 13:47:11 -0000
- Subject: [binutils-gdb] sim/mcore/interp.c: Include "unistd.h".
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4185814eb444c3a793dcb7ef567acf3d74019d07
commit 4185814eb444c3a793dcb7ef567acf3d74019d07
Author: Chen Gang <gang.chen.5i5j@gmail.com>
Date: Wed Feb 11 21:39:01 2015 +0800
sim/mcore/interp.c: Include "unistd.h".
The related warnings:
gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I. -I../../../binutils-gdb/sim/mcore -I../common -I../../../binutils-gdb/sim/mcore/../common -I../../include -I../../../binutils-gdb/sim/mcore/../../include -I../../bfd -I../../../binutils-gdb/sim/mcore/../../bfd -I../../opcodes -I../../../binutils-gdb/sim/mcore/../../opcodes -g -O2 -c -o interp.o -MT interp.o -MMD -MP -MF .deps/interp.Tpo ../../../binutils-gdb/sim/mcore/interp.c
../../../binutils-gdb/sim/mcore/interp.c: In function â??handle_trap1â??:
../../../binutils-gdb/sim/mcore/interp.c:559:22: warning: implicit declaration of function â??linkâ?? [-Wimplicit-function-declaration]
cpu.gr[RET1] = link ((char *) a[0], (char *) a[1]);
^
../../../binutils-gdb/sim/mcore/interp.c:585:22: warning: implicit declaration of function â??accessâ?? [-Wimplicit-function-declaration]
cpu.gr[RET1] = access ((char *) a[0], a[1]);
^
2015-02-11 Chen Gang <gang.chen.5i5j@gmail.com>
* interp.c: Include "unistd.h".
Diff:
---
sim/mcore/ChangeLog | 4 ++++
sim/mcore/interp.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/sim/mcore/ChangeLog b/sim/mcore/ChangeLog
index a073107..d108974 100644
--- a/sim/mcore/ChangeLog
+++ b/sim/mcore/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-11 Chen Gang <gang.chen.5i5j@gmail.com>
+
+ * interp.c: Include "unistd.h".
+
2014-08-19 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c
index dfaa6aa..7e2be0d 100644
--- a/sim/mcore/interp.c
+++ b/sim/mcore/interp.c
@@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <sys/times.h>
#include <sys/param.h>
#include <netinet/in.h> /* for byte ordering macros */
+#include <unistd.h>
#include "bfd.h"
#include "gdb/callback.h"
#include "libiberty.h"