https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118810
Bug ID: 118810
Summary: collect2 should delay creating of temp
.cdtor.c/.cdtor.o files until needed
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Keywords: compile-time-hog, internal-improvement
Severity: enhancement
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
This is a small performance improvement and sometimes confuses someone if they
do strace on collect2 and notice that .cdtor.c file was being produced and then
when they add -save-temps it is no longer around.
Noticed while looking into the request of PR 118803 (which is not needed as
-save-temps does save the .cdtor.c file if it was actually in use).