On 18.05.21 15:57, Richard Biener wrote:
Doh.  So -foffload=default -foffloat=nvptx-none=-latomic maybe?

We really need a good documentation for -foffload= and something like
-foffload=default would be good as well – I think we currently only have
'disabled' and an explicit list. (Documentation: cf.
https://gcc.gnu.org/PR67300 )

That said, it would be nice
if -latomic was_added_  by the targets specs when possibly needed,
maybe with -Wl,--as-needed instead of the user being required to add
it himself.

Last patch was
https://gcc.gnu.org/pipermail/gcc-patches/2020-October/556297.html (also
linked to from C99's https://gcc.gnu.org/PR81358 ) – see review comments
in the reply email.

At the end, I did run out of time for this side project and did not
follow up. (The changing the code/configure part should be quick; the
testsuite part is not as straight forward but might or might not be
complicated/lengthy.)

Tobias

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München 
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank 
Thürauf

Reply via email to