https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109753
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #8 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- In local-fnsummary2: __attribute__((always_inline, target ("avx2"))) void aa::aa (struct aa * const this) { <bb 2> [local count: 1073741824]: return; } this seems correct. But: void __static_initialization_and_destruction_0 () { <bb 2> : aa::aa (&_M_impl); return; } Note that __static_initialization_and_destruction_0 is not attributed with avx2.