Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] RFC: Add an __attribute__((destructor)) function to opal
From: George Bosilca (bosilca_at_[hidden])
Date: 2014-07-17 20:55:08


Are these also called for shared libraries?

  George.

On Wed, Jul 16, 2014 at 3:36 PM, Paul Hargrove <phhargrove_at_[hidden]> wrote:

>
> On Wed, Jul 16, 2014 at 7:36 AM, Nathan Hjelm <hjelmn_at_[hidden]> wrote:
>
>> Correction. xlc does support the destructor function attribute. The odd
>> one out is PGI.
>>
>
> Are the Solaris Studio compilers still of interest to the Open MPI
> community?
> If so, I've confirmed support using the following 5-line test on a
> Solaris-10/SPARC platform.
>
> #include <stdio.h>
> int X = 0;
> __attribute__((__constructor__)) void hello(void) { X = 42; }
> __attribute__((__destructor__)) void goodbye(void) { printf("X = %d\n",
> X); }
> int main(void) { return 0; }
>
>
>
> -Paul
>
>
>
>
> --
> Paul H. Hargrove PHHargrove_at_[hidden]
> Future Technologies Group
> Computer and Data Sciences Department Tel: +1-510-495-2352
> Lawrence Berkeley National Laboratory Fax: +1-510-486-6900
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post:
> http://www.open-mpi.org/community/lists/devel/2014/07/15183.php
>