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

--- Comment #20 from Kito Cheng <kito at gcc dot gnu.org> ---
Created attachment 47972
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47972&action=edit
PR90811-ipa-increase-alignment.patch

Hi Jeff:

Updated patch attached, tested on riscv32/riscv64, this version take the
suggestion from Andrew, implement that in ipa_increase_alignment pass, I saw
the dump file number is 67, but ompdevlow is 92, I am not sure it's late enough
or not, since I failed to reproduce the original issue on x86_64 + nvptx + cuda
10.0, I just get some error message seems like unrelated to this alignment
issue even with r272181.

as /tmp/ccuQhrDr.s, line 26; error   : Arguments mismatch for instruction 'mov'
as /tmp/ccuQhrDr.s, line 91; error   : Arguments mismatch for instruction 'mov'
as /tmp/ccuQhrDr.s, line 98; error   : Label expected for argument 0 of
instruction 'call'
as /tmp/ccuQhrDr.s, line 98; fatal   : Call target not recognized


* Note, as has replaced to ptxas manually, it was
https://github.com/MentorEmbedded/nvptx-tools

Did you mind tell me how to build the environment to reproduce?

My current configure option and version:

GCC version g:6b3302da9ef26aa11940f8c0dc92bec19e15c09b
CUDA: 10.0 (8.0 install failed on Ubuntu 18.04)

x86_64: --disable-bootstrap --disable-multilib
--enable-languages=c,c++,lto,fortran --enable-offload-targets=nvptx-none
--enable-multiarch --with-cuda-driver=/usr/local/cuda
nvptx-none

nvptx: --disable-bootstrap --disable-sjlj-exceptions
--enable-newlib-io-long-long --target=nvptx-none
--enable-as-accelerator-for=x86_64-linux-gnu
--enable-languages=c,c++,fortran,lto --program-prefix=nvptx-none-

Thanks

Reply via email to