public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104327] New: [12 Regression] Inlining error on s390x since r12-1039
@ 2022-02-01 16:32 jakub at gcc dot gnu.org
  2022-02-01 16:32 ` [Bug target/104327] " jakub at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-02-01 16:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104327
           Summary: [12 Regression] Inlining error on s390x since r12-1039
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

Since r12-1039-gebd5e86c0f41dc1d692f9b2b68a510b1f6835a3e
we reject following testcase on s390x-linux (reduced from php):
void foo (int *);

static inline __attribute__((always_inline)) void
bar (int *x)
{
  foo (x);
}

__attribute__((cold, optimize("Os"))) void
baz (int *x)
{
  bar (x);
}
(with -O0 or -O2 etc.):
rh2048565.c: In function ‘baz’:
rh2048565.c:4:1: error: inlining failed in call to ‘always_inline’ ‘bar’:
target specific option mismatch
    4 | bar (int *x)
      | ^~~
rh2048565.c:12:3: note: called from here
   12 |   bar (x);
      |   ^~~~~~~

target attribute isn't used at all though.  Seems the mismatch is because the
r12-1039 code sets DECL_FUNCTION_SPECIFIC_TARGET on the baz caller to non-NULL,
while bar has it NULL.

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

end of thread, other threads:[~2023-05-25 17:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 16:32 [Bug target/104327] New: [12 Regression] Inlining error on s390x since r12-1039 jakub at gcc dot gnu.org
2022-02-01 16:32 ` [Bug target/104327] " jakub at gcc dot gnu.org
2022-02-01 17:08 ` marxin at gcc dot gnu.org
2022-02-02  7:11 ` rguenth at gcc dot gnu.org
2022-02-02 12:06 ` marxin at gcc dot gnu.org
2022-02-02 21:44 ` jakub at gcc dot gnu.org
2022-02-03  6:50 ` krebbel at gcc dot gnu.org
2022-02-03  8:50 ` marxin at gcc dot gnu.org
2022-02-03  9:04 ` jakub at gcc dot gnu.org
2022-02-03  9:29 ` krebbel at gcc dot gnu.org
2022-02-07 10:18 ` cvs-commit at gcc dot gnu.org
2022-02-07 12:52 ` jakub at gcc dot gnu.org
2023-05-25 17:39 ` cvs-commit at gcc dot gnu.org
2023-05-25 17:45 ` cvs-commit at gcc dot gnu.org
2023-05-25 17:46 ` cvs-commit 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).