From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E59333858C41; Sun, 17 Sep 2023 06:37:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E59333858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694932633; bh=H5t0aGLgl0Mkc8nOmSF71uTEnuQug/6Bed7hTXYm+k8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DhvVHRjWM14tXHeEQ16Ahii+xRhFiwnT3EMAOeITW0CDxBnoSXohRjmGOooWOKp7l T7jAoGfGKL96Z/lQ+9nHma47PmbK4I7+0KVQwpoQEHcCVsUIYAXdecteEETgMhK5GR zWQ4rcjYWAUJTFduE9fSI+RS0kHZnOBIhA2SUCiQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/111437] Some always inline functions are incorrectly warn of as "might not be inlinable" Date: Sun, 17 Sep 2023 06:37:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111437 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #4 from Andrew Pinski --- One definition has: __attribute__((hot)) __attribute__((always_inline)) pawd pawmsg_SIGKILL( pa= wexe pid ) { return pawtrigger(=20 # 127 "/mnt/CODE/gitlab/dragonbuilder/include/paw/pawint/../pawmsg.h" 3 4 ((void *)0) # 127 "/mnt/CODE/gitlab/dragonbuilder/include/paw/pawint/../pawmsg.h" , PAWMSGID_KILL_NOW, PAWMSG_CLSID_APP, 0, pid ); } Yes without inline the always_inline might be not be inlinable ... The preprocessed source is full of issues; redefinitions: /mnt/CODE/gitlab/dragonbuilder/src/libpaw/pawaio.c:50:28: error: redefiniti= on of =E2=80=98pawabspath_putroot=E2=80=99 In file included from /mnt/CODE/gitlab/dragonbuilder/src/libpaw/libpaw.h:19, from /mnt/CODE/gitlab/dragonbuilder/src/libpaw/pawaio.c:1: /mnt/CODE/gitlab/dragonbuilder/include/paw/pawaio.h:554:28: note: previous definition of =E2=80=98pawabspath_putroot=E2=80=99 with type =E2=80=98pawjd= (pawmbcd *, pawmbctxt,=20 pawmbctxt)=E2=80=99 {aka =E2=80=98long int(pawmbcd *, pawmbc_txt, pawmbc_t= xt)=E2=80=99} etc. But the pattern for the "might not be inlinable" is all the same as what I mentioned first. There is only always_inline without an inline ...=