public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sen2403 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file
Date: Wed, 20 Jul 2022 06:29:17 +0000	[thread overview]
Message-ID: <bug-91299-4-0K73dLU4KH@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-91299-4@http.gcc.gnu.org/bugzilla/>

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

Eason Lai <sen2403 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sen2403 at hotmail dot com

--- Comment #8 from Eason Lai <sen2403 at hotmail dot com> ---
This problem can be reproduced by arm-none-eabi-gcc 10.2.1-q4 toolchain.

The weak definition in LTO object is been inline directly even there is a
strong definition in normal object. And, the problem is gone if changing
optimization from (-Os) to (-O1 or -O0).

       reply	other threads:[~2022-07-20  6:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-91299-4@http.gcc.gnu.org/bugzilla/>
2022-07-20  6:29 ` sen2403 at hotmail dot com [this message]
2022-07-20  7:23 ` amonakov at gcc dot gnu.org
2022-07-20 10:44 ` sen2403 at hotmail dot com
2022-07-26 12:27 ` amonakov at gcc dot gnu.org
2022-08-25 13:01 ` sen2403 at hotmail dot com
2022-08-25 13:22 ` sen2403 at hotmail dot com
2022-09-06  7:20 ` [Bug lto/91299] [10/11/12/13 Regression] " amonakov at gcc dot gnu.org
2022-10-18  7:50 ` rguenth at gcc dot gnu.org
2023-07-07 10:35 ` [Bug lto/91299] [11/12/13/14 " rguenth 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-91299-4-0K73dLU4KH@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: link
Be 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).