[Patch] OpenMP: Handle cpp_implicit_alias in declare-target discovery (PR96390)

Tobias Burnus tobias@codesourcery.com
Tue Sep 22 14:11:19 GMT 2020


On 9/22/20 9:36 AM, Jakub Jelinek wrote:

> On Tue, Sep 22, 2020 at 09:11:48AM +0200, Tobias Burnus wrote:
>>> Okay – or do we find more issues?
> I'm afraid so.
We will slowly converge, hopefully ;-)
> Consider:
> int v;
> #pragma omp declare target to (v)
> void foo (void) { v++; }
> void bar (void) __attribute__((alias ("foo")));
> #pragma omp declare target to (bar)
> void baz (void) __attribute__((alias ("foo")));
> void qux (void) {

etc.  – I did not convert this into a testcase. Should I?

Do you spot something more? Or is it now fine? (It passes on gcn +
xfailed on nvptx.)

Tobias
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omp-tmpl-v7.diff
Type: text/x-patch
Size: 4852 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200922/6ff534f9/attachment.bin>


More information about the Gcc-patches mailing list