This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: **PING**2 [Patch, Fortran] PR53526 - Fix MOVE_ALLOC for coarrays


http://gcc.gnu.org/ml/fortran/2012-05/msg00173.html

On 30.05.2012 18:35, Tobias Burnus wrote:
This patch is related to today's check.c patch, but independent (also order wise).

The patch ensures that for scalar coarrays, the array path is taken in trans-intrinsic. Thus, "to->data = from->data" gets replaced by "*to = *from" such that the array bounds (and with -fcoarray=lib the token) gets transferred as well.

While that also affected -fcoarray=single, the main changes are for the lib version:
- Call deregister instead of free
- Call sync all if TO is not deregistered. (move_alloc is an image control statement and, thus, implies synchronization)


Build and regtested on x86-64-linux.
OK for the trunk?

Tobias



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]