https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123041
--- Comment #2 from Florian Weimer <fw at gcc dot gnu.org> ---
Not a regression: The bug is present in 2.95.2, too:
.file "t.cpp"
.version "01.01"
gcc2_compiled.:
.text
.align 4
.globl f3__Fv
.type f3__Fv,@function
f3__Fv:
pushl %ebp
movl %esp,%ebp
subl $8,%esp
call f1__H1i0_v_v
leave
ret
.Lfe1:
.size f3__Fv,.Lfe1-f3__Fv
.section .gnu.linkonce.t.f1__H1i0_v_v,"ax",@progbits
.align 4
.weak f1__H1i0_v_v
.type f1__H1i0_v_v,@function
f1__H1i0_v_v:
pushl %ebp
movl %esp,%ebp
subl $8,%esp
call f2__Fv
leave
ret
.Lfe2:
.size f1__H1i0_v_v,.Lfe2-f1__H1i0_v_v
.ident "GCC: (GNU) 2.95.2 20000220 (Debian GNU/Linux)"