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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 52636
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52636&action=edit
Tentative patch

Patch that I'm currently working on.

Adds -malias, off by default.

It's off by default because when doing a build with libgomp and malias on by
default, libgomp uses .alias a few times, and that ends up in a linker error
"Internal error: reference to deleted section" with OvO test-cases (haven't
tried others)

This may be a driver error, or incorrect usage of the .alias directive.  The
answer might be found by playing around with .alias in cuda examples.

Things I tried manually in the ptx were:
- resolving the .alias: this worked
- enforcing order: function definition, alias declaration, alias definition
  to precisely match example in ptx manual: didn't work.

Reply via email to