mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
sim: rl78: move storage out of header
This port declares its pc variable in a header and then includes it 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.
This commit is contained in:
parent
68ed285428
commit
933306703a
@ -1,3 +1,8 @@
|
||||
2021-01-11 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* cpu.h (pc): Change to an extern.
|
||||
* cpu.c (pc): Define.
|
||||
|
||||
2021-01-11 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* config.in, configure: Regenerate.
|
||||
|
@ -36,6 +36,8 @@ int rl78_g10_mode = 0;
|
||||
int g13_multiply = 0;
|
||||
int g14_multiply = 0;
|
||||
|
||||
SI pc;
|
||||
|
||||
#define REGISTER_ADDRESS 0xffee0
|
||||
|
||||
typedef struct {
|
||||
|
@ -39,7 +39,7 @@ extern int rl78_in_gdb;
|
||||
SI get_reg (RL78_Register);
|
||||
SI set_reg (RL78_Register, SI);
|
||||
|
||||
SI pc;
|
||||
extern SI pc;
|
||||
|
||||
|
||||
extern const char * const reg_names[];
|
||||
|
Loading…
Reference in New Issue
Block a user