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

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #3)
> (In reply to Jakub Jelinek from comment #2)
> > Created attachment 44437 [details]
> > gcc9-pr86660.patch
> > 
> > Untested patch.  Does this fix it?
> 
> I'll try it out.

Failure mode changes to:
...
/home/vries/openacc/trunk/build-gcc/gcc/xgcc
-B/home/vries/openacc/trunk/build-gcc/gcc/ -x c++
/home/vries/openacc/trunk/source-gcc/libgomp/testsuite/libgomp.c++/for-15.C
-B/home/vries/openacc/trunk/build-gcc/x86_64-pc-linux-gnu/./libgomp/
-B/home/vries/openacc/trunk/build-gcc/x86_64-pc-linux-gnu/./libgomp/.libs
-I/home/vries/openacc/trunk/build-gcc/x86_64-pc-linux-gnu/./libgomp
-I/home/vries/openacc/trunk/source-gcc/libgomp/testsuite/../../include
-I/home/vries/openacc/trunk/source-gcc/libgomp/testsuite/.. -fmessage-length=0
-fno-diagnostics-show-caret -Wno-hsa -fdiagnostics-color=never
-B/home/vries/openacc/trunk/install/offload-nvptx-none/libexec/gcc/x86_64-pc-linux-gnu/9.0.0
-B/home/vries/openacc/trunk/install/offload-nvptx-none/bin -fopenmp -nostdinc++
-I/home/vries/openacc/trunk/build-gcc/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/home/vries/openacc/trunk/build-gcc/x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/vries/openacc/trunk/source-gcc/libstdc++-v3/libsupc++
-I/home/vries/openacc/trunk/source-gcc/libstdc++-v3/include/backward
-I/home/vries/openacc/trunk/source-gcc/libstdc++-v3/testsuite/util -O2
-std=c++17
-B/home/vries/openacc/trunk/build-gcc/x86_64-pc-linux-gnu/./libgomp/../libstdc++-v3/src/.libs
-L/home/vries/openacc/trunk/build-gcc/x86_64-pc-linux-gnu/./libgomp/.libs
-L/home/vries/openacc/trunk/build-gcc/x86_64-pc-linux-gnu/./libgomp/../libstdc++-v3/src/.libs
-lstdc++ -lm -o ./for-15.exe 
ptxas /tmp/ccWklsQO.o, line 124; error   : Arguments mismatch for instruction
'mov'
ptxas /tmp/ccWklsQO.o, line 209; fatal   : Parsing error near '0xff': syntax
error
ptxas fatal   : Ptx assembly aborted due to errors
nvptx-as: ptxas returned 255 exit status
mkoffload: fatal error:
/home/vries/openacc/trunk/install/offload-nvptx-none/bin//x86_64-pc-linux-gnu-accel-nvptx-none-gcc
returned 1 exit status
compilation terminated.
lto-wrapper: fatal error:
/home/vries/openacc/trunk/install/offload-nvptx-none/libexec/gcc/x86_64-pc-linux-gnu/9.0.0//accel/nvptx-none/mkoffload
returned 1 exit status
compilation terminated.
/usr/bin/ld.bfd.real: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
...

The ptxas error is due to the $LLSDA0 in a mov insn, and the .byte:
...
                mov.u64 %r53, %ar0;                                             
                mov.u64 %r84, __gxx_personality_v0;                             
                st.u64  [%frame+48], %r84;                                      
                mov.u64 %r85, $LLSDA0;                                          
                st.u64  [%frame+56], %r85;                                      
...

$LLSDA0:
        .byte   0xff
        .byte   0xff
        .byte   0x3
        .byte   0
...

Reply via email to