Hi, The upcoming patch series constitutes our current (still in-progress) implementation of run-time support for OpenACC 2.0 in libgomp. We've tried to build on top of the (also currently WIP) support for OpenMP 4.0's "target" construct, sharing code where possible: because of this, I've also prepared versions of (a fairly minimal, hopefully correct set of) prerequisite patches that apply to current mainline (and were previously on the gomp 4.0 branch), although in many cases we weren't the original authors of those.
Other parts of the OpenACC support for GCC are being sent upstream concurrently with this runtime support (and are co-dependent with it), so unfortunately, though the main part of the implementation (part 7/10) works on our internal branch, I haven't yet been able to convincingly test the series I'm about to post upstream. However this code will be useful to others who are posting their bits of OpenACC support upstream, so perhaps it'd be useful to commit it anyway (we have to start somewhere!). I've tried to retain proper attribution for all the forthcoming patches, but I may have made mistakes. Please let me know if so! Thanks, Julian