diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-09 03:10:52 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-09 09:39:17 -0500 |
commit | 7eb99e5e27eebaf4a4acd469ad0856c0b35d80b3 (patch) | |
tree | 4ae7fa2d590cec9e63da42f6fe9070f79092b4bf /sim/d10v/interp.c | |
parent | f074c07d8d4d36d2712117eace2e4db48d544291 (diff) | |
download | gdb-7eb99e5e27eebaf4a4acd469ad0856c0b35d80b3.zip gdb-7eb99e5e27eebaf4a4acd469ad0856c0b35d80b3.tar.gz gdb-7eb99e5e27eebaf4a4acd469ad0856c0b35d80b3.tar.bz2 |
sim: cr16/d10v: move storage out of header
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.
Diffstat (limited to 'sim/d10v/interp.c')
-rw-r--r-- | sim/d10v/interp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c index cb8c6cf..5c70b38 100644 --- a/sim/d10v/interp.c +++ b/sim/d10v/interp.c @@ -25,6 +25,8 @@ enum _leftright { LEFT_FIRST, RIGHT_FIRST }; +struct _state State; + int d10v_debug; /* Set this to true to get the previous segment layout. */ |