On Mon, Oct 12, 2020 at 05:51:17PM +0200, Tobias Burnus wrote:
> first: *PING*.
> 
> secondly, I think the change to testsuite/lib/libgomp.exp's libgomp_init
> is also needed.
> (Hence, I now added it.) I have a too new system-installed libatomic to
> be sure that
> it fails without.

I think for libgomp.spec we should add it solely for the offloading targets,
neither GCC generated code for OpenMP construct nor libgomp itself needs
-latomic on the hosts.
Otherwise, if we want to add it --as-needed for all targets that have it, it
should be done in gcc/configure* and gcc/gcc.c (and adjust then the
testsuites + document in release notes).
That would really need e.g. packaging changes for distros because
libatomic-devel wouldn't be optional anymore (and likely also the static
version would be needed too).

        Jakub

Reply via email to