Re: [Patch, Fortran] -fcoarray=lib: Change handling of this_image() and num_images()

2014-03-07 Thread Tobias Burnus
Tobias Burnus wrote: Hence, the attached patch adds a this_image() and num_images() library function. As the library is only build statically and -fcoarray=lib is not widely used due to lacking communication support, I wouldn't count this patch as real ABI break and there shouldn't be a problem

[Patch, Fortran] -fcoarray=lib: Change handling of this_image() and num_images()

2014-03-06 Thread Tobias Burnus
The current coarray implementation uses a global static variable for this_image() and num_images(), which is set by the CAF init function, which is called by before the Fortran main function. I somehow had the thinko that this permits for better optimizations than a library call. However, glob