public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jacek at codeweavers dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/51726] LTO and attribute 'selectany' Date: Thu, 21 May 2015 14:46:00 -0000 [thread overview] Message-ID: <bug-51726-4-siCHR7ajpr@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-51726-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51726 Jacek Caban <jacek at codeweavers dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek at codeweavers dot com --- Comment #5 from Jacek Caban <jacek at codeweavers dot com> --- It seems like selectany is not supported at all in LTO: $ cat selectany.c __attribute__((selectany)) int i = 0; $ i686-w64-mingw32-gcc selectany.c selectany.c -flto -shared /tmp/cchTGZVt.o (symbol from plugin):(.text+0x0): multiple definition of `i' /tmp/ccAy2OzL.o (symbol from plugin):(.text+0x0): first defined here collect2: error: ld returned 1 exit status $ i686-w64-mingw32-gcc --version i686-w64-mingw32-gcc (GCC) 5.1.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Should I file separated bug?
next prev parent reply other threads:[~2015-05-21 14:46 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-01 19:27 [Bug target/51726] New: " d.g.gorbachev at gmail dot com 2012-01-02 11:20 ` [Bug target/51726] " rguenth at gcc dot gnu.org 2012-01-23 20:48 ` d.g.gorbachev at gmail dot com 2014-08-08 2:09 ` [Bug lto/51726] " d.g.gorbachev at gmail dot com 2014-08-08 8:02 ` [Bug target/51726] " rguenth at gcc dot gnu.org 2015-05-21 14:46 ` jacek at codeweavers dot com [this message] 2015-09-30 19:34 ` ktietz at gcc dot gnu.org 2015-10-01 8:02 ` rguenth at gcc dot gnu.org 2015-10-01 18:56 ` ktietz at gcc dot gnu.org 2015-10-02 8:07 ` ktietz at gcc dot gnu.org 2015-10-02 8:09 ` ktietz at gcc dot gnu.org
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-51726-4-siCHR7ajpr@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.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).