Re: [Patch, Fortran] -fcoarray=single implementation of the atomic subroutines

2011-05-31 Thread Tobias Burnus
Daniel Kraft wrote: Build and regtested on x86-64-linux. OK for the trunk? Ok. Just one thought: + if (!(atom->ts.type == BT_INTEGER&& atom->ts.kind == gfc_c_int_kind) +&& !(atom->ts.type == BT_LOGICAL&& atom->ts.kind == gfc_c_int_kind)) What about defining another constant for atomic_int

Re: [Patch, Fortran] -fcoarray=single implementation of the atomic subroutines

2011-05-31 Thread Daniel Kraft
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On 05/31/11 18:24, Tobias Burnus wrote: > This patch adds the atomic_define and atomic_ref intrinsics. They are > currently implemented in form a simple assignment. For -fcoarray=lib > they will be replaced by a function call to libcaf_{single,mpi

[Patch, Fortran] -fcoarray=single implementation of the atomic subroutines

2011-05-31 Thread Tobias Burnus
This patch adds the atomic_define and atomic_ref intrinsics. They are currently implemented in form a simple assignment. For -fcoarray=lib they will be replaced by a function call to libcaf_{single,mpi,*}. I was shortly thinking of using something more clever, but I concluded that a simple ass