[PATCH] Fix libstdc++ tests requiring atomic support on hppa-hpux

Joseph Myers joseph@codesourcery.com
Wed Mar 13 05:10:00 GMT 2019


On Tue, 12 Mar 2019, Hans-Peter Nilsson wrote:

> When is it appropriate to make the user add -latomic to link
> their program?  Perhaps different answers for fortran and C++.
> I'm guessing "always when using any atomic construct" for C.

I think we should link with --as-needed -latomic --no-as-needed by default 
when --as-needed is supported (see bug 81358).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list