[PATCH 4/7] sim: sh: drop errno extern

Mike Frysinger vapier@gentoo.org
Sun Nov 7 01:12:13 GMT 2021


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.
---
 sim/sh/interp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index c4ac5b3e66b1..ce4d6cd76032 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;
 
-- 
2.33.0



More information about the Gdb-patches mailing list