Re: Changes in inline behavior on O2 optimization level for GCC 10+

2025-07-28 Thread Peter Geoghegan
On Sun, Jul 27, 2025 at 5:48 PM Alexey Makhmutov wrote: > The primary goal of this message is just to raise an awareness of this > change and its possible influence on resulting builds. I believe that clang works in the same way, and has for some time now. "clang -mllvm -debug" output shows debug

Changes in inline behavior on O2 optimization level for GCC 10+

2025-07-27 Thread Alexey Makhmutov
GCC 10 introduced some changes to its handling of functions inline optimization. These changes are described in its changelist (https://gcc.gnu.org/gcc-10/changes.html) as following: > Inter-procedural optimization improvements: > ... > -finline-functions is now enabled at -O2 and was retuned