public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/108470] New: Missing documentation for alternate uses of __attribute__((noinline))
@ 2023-01-19 20:48 rth at gcc dot gnu.org
  2023-01-20  8:30 ` [Bug ipa/108470] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rth at gcc dot gnu.org @ 2023-01-19 20:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108470
           Summary: Missing documentation for alternate uses of
                    __attribute__((noinline))
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rth at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

The noinline attribute affects decisions made by ipa-split.cc
and ipa-icf.cc that are not immediately obvious.

At least the ipa-split choice affects code correctness for QEMU
(in that we expect __builtin_return_address to be used in very
specific contexts, and the transformation done by ipa-split
invalidates that).  Using noinline on the affected functions
prevents the ipa-split optimization and restores functionality.

It would be nice to document the effect, so that the workaround
is not affected in future gcc versions.

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

end of thread, other threads:[~2024-01-20 17:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19 20:48 [Bug ipa/108470] New: Missing documentation for alternate uses of __attribute__((noinline)) rth at gcc dot gnu.org
2023-01-20  8:30 ` [Bug ipa/108470] " rguenth at gcc dot gnu.org
2023-02-09 11:40 ` marxin at gcc dot gnu.org
2023-02-09 11:53 ` rearnsha at gcc dot gnu.org
2023-02-09 12:46 ` marxin at gcc dot gnu.org
2024-01-18 23:26 ` cvs-commit at gcc dot gnu.org
2024-01-18 23:28 ` sandra at gcc dot gnu.org
2024-01-20 17:22 ` pinskia 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).