public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/94271] New: [8/9/10 Regression] lto1: error: two or more sections for .gnu.lto_fast_clamp.default.9.564bf999b130b5e since r8-1461-g871cc215f7507cbe
@ 2020-03-23 10:14 marxin at gcc dot gnu.org
  2020-03-23 10:15 ` [Bug ipa/94271] " marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-03-23 10:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94271

            Bug ID: 94271
           Summary: [8/9/10 Regression] lto1: error: two or more sections
                    for .gnu.lto_fast_clamp.default.9.564bf999b130b5e
                    since r8-1461-g871cc215f7507cbe
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

Since the revision we do not accept:

$ cat 1.i
int a;
static inline int
__attribute__((target_clones("default", "sse2", "sse3", "sse4.1", "sse4.2",
                             "popcnt", "avx", "avx2", "avx512f",
                             "fma4"))) fast_clamp() {}
void c() { a = fast_clamp(); }

$ cat 2.i
int aa;
static inline int
__attribute__((target_clones("default", "sse2", "sse3", "sse4.1", "sse4.2",
                             "popcnt", "avx", "avx2", "avx512f",
                             "fma4"))) fast_clamp() {}
void b() { aa = fast_clamp(); }

int main()
{
  return 0;
}

$ gcc 1.i 2.i  -O2 -flto
...
(.text+0x0): multiple definition of `fast_clamp'; /tmp/cc3Vv3xl.o (symbol from
plugin):(.text+0x0): first defined here

The situation is even worse since
r10-6242-gc2bd2b4664be8b73f8fd58a64dec1e93871797cc:

/usr/bin/ld: /tmp/ccwTYmhr.o (symbol from plugin): in function `main':
(.text+0x0): multiple definition of `fast_clamp'; /tmp/ccdQcwap.o (symbol from
plugin):(.text+0x0): first defined here
1.i:6:1: error: ‘fast_clamp’ has already been defined
    6 | void c() { a = fast_clamp(); }
      | ^
1.i:6:1: note: previously defined here
lto1: fatal error: errors during merging of translation units
compilation terminated.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-31 10:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 10:14 [Bug ipa/94271] New: [8/9/10 Regression] lto1: error: two or more sections for .gnu.lto_fast_clamp.default.9.564bf999b130b5e since r8-1461-g871cc215f7507cbe marxin at gcc dot gnu.org
2020-03-23 10:15 ` [Bug ipa/94271] " marxin at gcc dot gnu.org
2020-03-23 13:23 ` marxin at gcc dot gnu.org
2020-03-23 14:10 ` rguenth at gcc dot gnu.org
2020-03-25 10:04 ` cvs-commit at gcc dot gnu.org
2020-03-25 10:04 ` [Bug ipa/94271] [8/9 " marxin at gcc dot gnu.org
2020-03-26  9:08 ` ro at gcc dot gnu.org
2020-03-26  9:26 ` marxin at gcc dot gnu.org
2020-03-31 10:48 ` marxin at gcc dot gnu.org

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).