mirror of git://gcc.gnu.org/git/gcc.git
multi.c: Remove static variables _gfortrani_caf_this_image and caf_num_images.
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
This commit is contained in:
parent
8d3339526a
commit
6857bd99f3
|
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
|
|||
|
|
@ -59,8 +59,6 @@ typedef struct cond_t {
|
|||
|
||||
/* Static variables. */
|
||||
|
||||
__thread int _gfortrani_caf_this_image = -1;
|
||||
int caf_num_images = -1;
|
||||
pthread_barrier_t sync_all_barrier;
|
||||
pthread_t *tidlist;
|
||||
|
||||
|
|
|
|||
|
|
@ -142,6 +142,10 @@ backtrace_handler (int signum)
|
|||
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[])
|
||||
{
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
int caf_num_images = -1;
|
||||
|
||||
/* Implementation of secure_getenv() for targets where it is not
|
||||
provided. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue