2018-09-02 Thomas Koenig <tkoenig@gcc.gnu.org>
* caf/multi.c: Remove static variables _gfortrani_caf_this_image
and caf_num_images.
* runtime/environ.c: Add caf_num_images.
* runtime/compile_options.c: Add _gfortrani_caf_this_image.
From-SVN: r264045
+2018-09-02 Thomas Koenig <tkoenig@gcc.gnu.org>
+ * caf/multi.c: Remove static variables _gfortrani_caf_this_image
+ and caf_num_images.
+ * runtime/environ.c: Add caf_num_images.
+ * runtime/compile_options.c: Add _gfortrani_caf_this_image.
+
2018-09-02 Thomas Koenig <tkoenig@gcc.gnu.org>
* caf/multi.c (_gfortran_caf_register): New function.
/* Static variables. */
-__thread int _gfortrani_caf_this_image = -1;
-int caf_num_images = -1;
pthread_barrier_t sync_all_barrier;
pthread_t *tidlist;
extern void set_options (int , int []);
export_proto(set_options);
+/* Thread-local storage which image we are in. */
+
+__thread int _gfortrani_caf_this_image = -1;
+
void
set_options (int num, int options[])
{
#include <unistd.h>
#endif
+int caf_num_images = -1;
/* Implementation of secure_getenv() for targets where it is not
provided. */