public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/114199] New: [14 regression] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable
@ 2024-03-01 22:34 csfore at posteo dot net
  2024-03-01 22:38 ` [Bug c/114199] " sjames at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: csfore at posteo dot net @ 2024-03-01 22:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114199
           Summary: [14 regression] error: inlining failed in call to
                    ‘always_inline’ ‘readlinkat.localalias’: function not
                    inlinable
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: csfore at posteo dot net
  Target Milestone: ---

Created attachment 57590
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57590&action=edit
build.log

Does not fail on 13

Steps to reproduce:
1. Build attached file with -O3 -fno-semantic-interposition -fPIC
libumockdev-preload.i

$ gcc -O3 -fno-semantic-interposition -fPIC libumockdev-preload.i
libumockdev-preload.i: In function ‘__readlinkat_chk’:
libumockdev-preload.i:4:6: error: inlining failed in call to ‘always_inline’
‘readlinkat.localalias’: function not inlinable
    4 | long readlinkat() {}
      |      ^~~~~~~~~~
libumockdev-preload.i:5:34: note: called from here
    5 | long __readlinkat_chk() { return readlinkat(); }
      |                                  ^~~~~~~~~~~~

$ gcc -v
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.0.1_pre20240225/work/gcc-14-20240225/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python
--enable-languages=c,c++,go,fortran,rust --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened
14.0.1_pre20240225 p23' --with-gcc-major-version-only --enable-libstdcxx-time
--enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --enable-multilib
--with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all
--enable-libgomp --disable-libssp --disable-libada --disable-cet
--disable-systemtap --disable-valgrind-annotations --disable-vtable-verify
--disable-libvtv --with-zstd --with-isl --disable-isl-version-check
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3
bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240225 (experimental) (Gentoo Hardened 14.0.1_pre20240225
p23)

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

* [Bug c/114199] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable
  2024-03-01 22:34 [Bug c/114199] New: [14 regression] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable csfore at posteo dot net
@ 2024-03-01 22:38 ` sjames at gcc dot gnu.org
  2024-03-01 22:52 ` csfore at posteo dot net
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-03-01 22:38 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[14 regression] error:      |error: inlining failed in
                   |inlining failed in call to  |call to ‘always_inline’
                   |‘always_inline’             |‘readlinkat.localalias’:
                   |‘readlinkat.localalias’:    |function not inlinable
                   |function not inlinable      |

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
I can reproduce this with 10..14. It's a problem we've seen reported in the
past with -fno-semantic-interposition + LTO + _F_S a lot downstream, just never
looked into it.

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

* [Bug c/114199] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable
  2024-03-01 22:34 [Bug c/114199] New: [14 regression] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable csfore at posteo dot net
  2024-03-01 22:38 ` [Bug c/114199] " sjames at gcc dot gnu.org
@ 2024-03-01 22:52 ` csfore at posteo dot net
  2024-03-01 22:53 ` csfore at posteo dot net
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: csfore at posteo dot net @ 2024-03-01 22:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Christopher Fore <csfore at posteo dot net> ---
Got it, I believe I was missing a flag when attempting to reproduce on the
lower versions, apologies!

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

* [Bug c/114199] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable
  2024-03-01 22:34 [Bug c/114199] New: [14 regression] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable csfore at posteo dot net
  2024-03-01 22:38 ` [Bug c/114199] " sjames at gcc dot gnu.org
  2024-03-01 22:52 ` csfore at posteo dot net
@ 2024-03-01 22:53 ` csfore at posteo dot net
  2024-03-01 22:53 ` csfore at posteo dot net
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: csfore at posteo dot net @ 2024-03-01 22:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Christopher Fore <csfore at posteo dot net> ---
Created attachment 57592
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57592&action=edit
minimized preprocessed file

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

* [Bug c/114199] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable
  2024-03-01 22:34 [Bug c/114199] New: [14 regression] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable csfore at posteo dot net
                   ` (2 preceding siblings ...)
  2024-03-01 22:53 ` csfore at posteo dot net
@ 2024-03-01 22:53 ` csfore at posteo dot net
  2024-03-01 23:03 ` [Bug ipa/114199] __gnu_inline__ vs -fno-semantic-interposition with defintion in the same TU pinskia at gcc dot gnu.org
  2024-03-01 23:07 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: csfore at posteo dot net @ 2024-03-01 22:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Christopher Fore <csfore at posteo dot net> ---
Created attachment 57593
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57593&action=edit
original preprocessed file

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

* [Bug ipa/114199] __gnu_inline__ vs -fno-semantic-interposition with defintion in the same TU
  2024-03-01 22:34 [Bug c/114199] New: [14 regression] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable csfore at posteo dot net
                   ` (3 preceding siblings ...)
  2024-03-01 22:53 ` csfore at posteo dot net
@ 2024-03-01 23:03 ` pinskia at gcc dot gnu.org
  2024-03-01 23:07 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-01 23:03 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |ipa

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-fno-semantic-interposition is broken in many different ways. It is broken for
most uses in general.

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

* [Bug ipa/114199] __gnu_inline__ vs -fno-semantic-interposition with defintion in the same TU
  2024-03-01 22:34 [Bug c/114199] New: [14 regression] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable csfore at posteo dot net
                   ` (4 preceding siblings ...)
  2024-03-01 23:03 ` [Bug ipa/114199] __gnu_inline__ vs -fno-semantic-interposition with defintion in the same TU pinskia at gcc dot gnu.org
@ 2024-03-01 23:07 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-01 23:07 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually this is a dup of bug 101270.

*** This bug has been marked as a duplicate of bug 101270 ***

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

end of thread, other threads:[~2024-03-01 23:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-01 22:34 [Bug c/114199] New: [14 regression] error: inlining failed in call to ‘always_inline’ ‘readlinkat.localalias’: function not inlinable csfore at posteo dot net
2024-03-01 22:38 ` [Bug c/114199] " sjames at gcc dot gnu.org
2024-03-01 22:52 ` csfore at posteo dot net
2024-03-01 22:53 ` csfore at posteo dot net
2024-03-01 22:53 ` csfore at posteo dot net
2024-03-01 23:03 ` [Bug ipa/114199] __gnu_inline__ vs -fno-semantic-interposition with defintion in the same TU pinskia at gcc dot gnu.org
2024-03-01 23:07 ` 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).