[Openmp-commits] [PATCH] D64943: [Clang][OpenMP offload] Eliminate use of OpenMP linker script

Roman Lebedev via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Aug 16 07:53:14 PDT 2019


lebedev.ri added a comment.

In D64943#1633164 <https://reviews.llvm.org/D64943#1633164>, @ABataev wrote:

> In D64943#1619958 <https://reviews.llvm.org/D64943#1619958>, @sdmitriev wrote:
>
> > As I understand ‘atexit’ solution would be target dependent (‘__cxa_atexit’ on Linux and ‘atexit’ on Windows) whereas @llvm.global_ctors/dtors variables offer similar and platform neutral functionality (http://llvm.org/docs/LangRef.html#the-llvm-global-ctors-global-variable). Why do you think that ‘atexit’ is a better choice?
>
>
> Because it does not work on Windows, better to have portable solution, if possible.


Is there a bug # ?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64943/new/

https://reviews.llvm.org/D64943





More information about the Openmp-commits mailing list