[Bug c++/114357] Add a way to not call deconstructors for non-auto decls, like clang's no_destroy attribute

2024-03-15 Thread jfb at chromium dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114357 --- Comment #5 from JF Bastien --- (In reply to Andrew Pinski from comment #4) > (In reply to JF Bastien from comment #3) > > The LLVM feature was added for XNU, because the kernel never runs its own > > global C++ destructors (but the compiler

[Bug c++/114357] Add a way to not call deconstructors for non-auto decls, like clang's no_destroy attribute

2024-03-15 Thread jfb at chromium dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114357 --- Comment #3 from JF Bastien --- The LLVM feature was added for XNU, because the kernel never runs its own global C++ destructors (but the compiler can't know this). It saved a non-trivial amount of code generation.