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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |target

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
on aarch64 we get:
      .section        .text.startup,"ax",@progbits
        .align  2
        .p2align 5,,15
        .global main
        .type   main, %function
main:
...
        .section        .gcc_except_table
.LLSDA17:
...
        .section        .text.startup
        .size   main, .-main

Which is correct.


Wait the problem is emitting of .amdhsa_kernel in .rodata.

We do:
        .rodata
        .p2align        6
        .amdhsa_kernel  main
...

        .end_amdgpu_metadata
        .text


Notice the .text here, that is wrong.

Reply via email to