These ports declare their State variable in a header and then include
multiple times. This causes linker errors with newer gcc due to the
change in -fno-common behavior. Move the storage to a C file so we
only have one instance of it in the final program.
+2021-01-09 Mike Frysinger <vapier@gentoo.org>
+
+ * cr16_sim.h (State): Change to an extern.
+ * interp.c (State): Define.
+
2021-01-09 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
2021-01-09 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
+};
+
+extern struct _state State;
#include "gdb/signals.h"
#include "opcode/cr16.h"
#include "gdb/signals.h"
#include "opcode/cr16.h"
int cr16_debug;
uint32 OP[4];
int cr16_debug;
uint32 OP[4];
+2021-01-09 Mike Frysinger <vapier@gentoo.org>
+
+ * d10v_sim.h (State): Change to an extern.
+ * interp.c (State): Define.
+
2021-01-09 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
2021-01-09 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
+};
+
+extern struct _state State;
enum _leftright { LEFT_FIRST, RIGHT_FIRST };
enum _leftright { LEFT_FIRST, RIGHT_FIRST };
int d10v_debug;
/* Set this to true to get the previous segment layout. */
int d10v_debug;
/* Set this to true to get the previous segment layout. */