aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/ChangeLog
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-02 18:10:49 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-03 21:03:47 +0200
commitc4df5bbeb87a445dbc84b9ed677b2c721e5051b5 (patch)
treeed41eb7b0c7a0d1b17f98783bc78b27ac1c8f425 /sim/igen/ChangeLog
parentad8464f799a4c96c7ab8bdfec3f95846cf54f9b0 (diff)
downloadgdb-c4df5bbeb87a445dbc84b9ed677b2c721e5051b5.zip
gdb-c4df5bbeb87a445dbc84b9ed677b2c721e5051b5.tar.gz
gdb-c4df5bbeb87a445dbc84b9ed677b2c721e5051b5.tar.bz2
sim/igen: Fix linker error with -fno-common
GCC 10 enables -fno-common by default. This resulted in multiple definition linker errors since a global variable was declared and defined in a header file: ld: libsim.a(idecode.o):sim/v850/idecode.h:71: multiple definition of `idecode_issue'; libsim.a(irun.o):sim/v850/idecode.h:71: first defined here ld: libsim.a(engine.o):sim/v850/idecode.h:71: multiple definition of `idecode_issue'; libsim.a(irun.o):sim/v850/idecode.h:71: first defined here ld: libsim.a(support.o):sim/v850/idecode.h:71: multiple definition of `idecode_issue'; libsim.a(irun.o):sim/v850/idecode.h:71: first defined here ld: libsim.a(semantics.o):sim/v850/idecode.h:71: multiple definition of `idecode_issue'; libsim.a(irun.o):sim/v850/idecode.h:71: first defined here sim/igen PR sim/26194 * lf.h (lf_get_file_type): Declare. * lf.c (lf_get_file_type): Define. * gen-idecode.c (print_idecode_issue_function_header): Use lf_get_file_type() to issue an extern variable declaration in case of header files.
Diffstat (limited to 'sim/igen/ChangeLog')
-rw-r--r--sim/igen/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog
index beda37b..f3f50f4 100644
--- a/sim/igen/ChangeLog
+++ b/sim/igen/ChangeLog
@@ -1,3 +1,12 @@
+2020-07-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ PR sim/26194
+ * lf.h (lf_get_file_type): Declare.
+ * lf.c (lf_get_file_type): Define.
+ * gen-idecode.c (print_idecode_issue_function_header): Use
+ lf_get_file_type() to issue an extern variable declaration in
+ case of header files.
+
2019-12-19 Tom Tromey <tromey@adacore.com>
PR build/24572: