sim/mcore/interp.c: Include "unistd.h".
authorChen Gang <gang.chen.5i5j@gmail.com>
Wed, 11 Feb 2015 13:39:01 +0000 (21:39 +0800)
committerChen Gang <gang.chen.5i5j@gmail.com>
Wed, 11 Feb 2015 13:46:30 +0000 (21:46 +0800)
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".

sim/mcore/ChangeLog
sim/mcore/interp.c

index a0731073db9357af1ec77a871088ef9760a2ada0..d1089741058d8575325ab03bc356d8ae1919ad5a 100644 (file)
@@ -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.
index dfaa6aacbd0450aea3a397fae6a038210f1bcb8f..7e2be0d3ff51e94e94843ec711a718d45dbeb7fd 100644 (file)
@@ -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"