On Wed, 16 Jul 2025, John Ericson wrote:
> config/ChangeLog:
>
> * gthr.m4: Create new GCC_AC_THREAD_MODEL macro
>
> libatomic/ChangeLog:
>
> * configure.ac: Use GCC_AC_THREAD_MODEL instead of hand-rolled
>
> libgcc/ChangeLog:
>
> * configure.ac: Use GCC_AC_THREAD_MODEL inst
This macro deduplicates the
$CC -v 2>&1 | sed -n 's/^Thread model: //p'
check that was occurring in various runtime libs.
Additionally, as a bit of an Easter egg, this also allows overriding
what the compiler would return by setting the
`gcc_cv_target_thread_file` cache variable first. I adm