https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117598
Bug ID: 117598
Summary: -fstack-usage not working with -flto (regression?)
Product: gcc
Version: 14.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: ivan.zrno2 at gmail dot com
Target Milestone: ---
I am experiencing the same as
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98922 just with a newer version of
gcc.
With link time optimization, -flto, the compiler doesn't create any *.su files.
Compiling a hello world main.cpp file with
"/usr/bin/g++ -g -fstack-usage -flto -o main.cpp.o -c main.cpp" doesn't create
a main.cpp.su file.
It also doesnt work with "-flto=auto"
The same happens with gcc 13.3.