[Bug middle-end/90779] Fortran array initialization in offload regions

ams at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 14 13:46:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90779

--- Comment #4 from Andrew Stubbs <ams at gcc dot gnu.org> ---
The problem is that the variables are added to the offload_var_table but not
exported so that libgomp cannot find the symbol at load time. This causes a
fatal error in a mutex-locked section, which causes libgomp's atexit handler to
hang trying to take the same lock.

The question is then, are the variables supposed to be in the
offload_var_table? 

If so, why? Aren't these just preinitialized constants?


More information about the Gcc-bugs mailing list