Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Force inlining of the inline functions #222
For GCC at least, adding an
Really fixes #180, which is also a problem on, at least, Gentoo with GCC
`inline` is not a requirement but only a suggestion, hence the compiler has the freedom to not really compile the marked functions as inline. Under some situations the affected functions could end up undefined in the compiled library, causing its loading to fail! For GCC at least, adding an `always_inline` attribute is enough to force inlining. Not sure if this breaks other compilers but I cannot test, so the definition is guarded by a check for GCC. Really fixes #180, which is also a problem on, at least, Gentoo with GCC 5.3.0.
I still get this error.
My gcc: gcc (Gentoo 5.4.0 p1.0, pie-0.6.5) 5.4.0