aboutsummaryrefslogtreecommitdiff
path: root/sim/sh/interp.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-06 20:59:17 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-06 20:59:17 -0400
commit73eef3fc38780753a30954d52b86beb1a281f783 (patch)
tree08e44a83a91a9ea920db10c18ab8fdcb7edcd1b4 /sim/sh/interp.c
parent697fa6fe670d20403c63de0746aaa6a706c7ca3b (diff)
downloadfsf-binutils-gdb-73eef3fc38780753a30954d52b86beb1a281f783.zip
fsf-binutils-gdb-73eef3fc38780753a30954d52b86beb1a281f783.tar.gz
fsf-binutils-gdb-73eef3fc38780753a30954d52b86beb1a281f783.tar.bz2
sim: sh: drop errno extern
This isn't needed on any reasonable target nowadays, and no other source does this, and breaks with some mingw targets, so punt the extern entirely.
Diffstat (limited to 'sim/sh/interp.c')
-rw-r--r--sim/sh/interp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index c4ac5b3..ce4d6cd 100644
--- a/sim/sh/interp.c
+++ b/sim/sh/interp.c
@@ -879,7 +879,6 @@ trap (SIM_DESC sd, int i, int *regs, unsigned char *insn_ptr,
}
case 34:
{
- extern int errno;
int perrno = errno;
errno = 0;