[Bug c++/89389] New: inlining failed in call to always_inline -- removing attribute leaves function inlined
peter_foelsche at mentor dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 18 16:14:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89389
Bug ID: 89389
Summary: inlining failed in call to always_inline -- removing
attribute leaves function inlined
Product: gcc
Version: 5.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: peter_foelsche at mentor dot com
Target Milestone: ---
Some member function is labeled
__attribute__((always_inline)) inline
as are many others. This is generated code and has been working for many cases.
Today I had the first error of this kind.
When removing the attribute the code compiles fine AND does not generate a
function call.
The function itself is trivial (there are many functions for which
always_inline is successful, which are more complicated.
The same error happens with
g++ 5.3.0
g++ 5.5.0
g++ 7.3.0
g++ 8.2.0
compiler options are
-fPIC -I include -O3 -DNDEBUG -funroll-loops -march=native -ffast-math
-fwhole-program -ftemplate-depth=16384 -march=native -shared -std=c++11
-Wno-attributes -I $BOOST_DIR
I'm not certain if I can provide the source code (or any preprocessed file) --
I'll have to ask.
More information about the Gcc-bugs
mailing list