public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug sim/26194] sim/igen generates code leading to linker errors with -fno-common (GCC 10 default) Date: Fri, 03 Jul 2020 19:04:33 +0000 [thread overview] Message-ID: <bug-26194-4717-Lq5mHDk9ny@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-26194-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=26194 --- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Sebastian Huber <sh@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c4df5bbeb87a445dbc84b9ed677b2c721e5051b5 commit c4df5bbeb87a445dbc84b9ed677b2c721e5051b5 Author: Sebastian Huber <sebastian.huber@embedded-brains.de> Date: Thu Jul 2 18:10:49 2020 +0200 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. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2020-07-03 19:04 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-02 6:04 [Bug sim/26194] New: " sebastian.huber@embedded-brains.de 2020-07-02 12:35 ` [Bug sim/26194] " simark at simark dot ca 2020-07-02 15:45 ` sebastian.huber@embedded-brains.de 2020-07-02 15:58 ` simark at simark dot ca 2020-07-03 19:04 ` cvs-commit at gcc dot gnu.org [this message] 2020-07-03 19:05 ` sebastian.huber@embedded-brains.de
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-26194-4717-Lq5mHDk9ny@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).