public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111437] New: Some always inline functions are incorrectly warn of as "might not be inlinable"
@ 2023-09-16 21:53 gb2985 at gmail dot com
  2023-09-16 22:14 ` [Bug c/111437] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gb2985 at gmail dot com @ 2023-09-16 21:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111437
           Summary: Some always inline functions are incorrectly warn of
                    as "might not be inlinable"
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gb2985 at gmail dot com
  Target Milestone: ---

Couldn't find a similar thread so my apologies if there actually was. For
starters a link to the code that made me cotton on to the issue:

https://gitlab.com/awsdert/dragonbuilder/-/blob/419c686fd59c0a40145154ef3d43b8d8b75aa29d/include/paw/pawidb.h#L34

In short it amounts to a simple LOAD, DIV, STORE set of instructions once
compiled which is undoubtedly inline-able in all situations. I had marked the
function as always inline but when gcc got to it it decided that no, those
measly few instructions are somehow not inlinable. The issue also occurs for
wrapped calls such as pawcv_gettop() calling the template generated
_pawcv_gettop(), the former existing for intellisense purposes while the latta
being what does the actual work.

I seriously doubt my system or any other details are relevant here but for what
I need to provide I'll add below (only remember one at time of posting, will
edit in rest if I can):

OS: Manjaro x64 XFCE (4.18)

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

end of thread, other threads:[~2023-09-17  8:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-16 21:53 [Bug c/111437] New: Some always inline functions are incorrectly warn of as "might not be inlinable" gb2985 at gmail dot com
2023-09-16 22:14 ` [Bug c/111437] " pinskia at gcc dot gnu.org
2023-09-17  6:19 ` [Bug ipa/111437] " gb2985 at gmail dot com
2023-09-17  6:22 ` gb2985 at gmail dot com
2023-09-17  6:37 ` pinskia at gcc dot gnu.org
2023-09-17  6:47 ` gb2985 at gmail dot com
2023-09-17  8:03 ` schwab@linux-m68k.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).