https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99552

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The over-aligned objects were moved into src/c++20/atomic.cc for GCC 16, so I
assume this warning only happens when building the library, not when running
the tests?

And this comment is no longer relevant:

    // Don't use std::hardware_destructive_interference_size here because we
    // don't want the layout of library types to depend on compiler options.
    static constexpr auto _S_align = 64;

    // Count of threads blocked waiting on this state.
    alignas(_S_align) __platform_wait_t _M_waiters = 0;

Since it's in not the header, it no longer depends on options that users use to
compile their code.

So maybe we should just use hardware_destructive_interference_size and then if
that's wrong for hppa, it's a G++ problem not a libstdc++ problem :-P

But atomic.cc could use --param destructive-interference-size=32 if needed on
hppa.

Reply via email to