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

            Bug ID: 117626
           Summary: [15 Regression] incompatible types when returning type
                    '_Bool' but 'struct ptx _device *' was expected
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

seen with trunk 20241116, when configuring with
--enable-offload-targets=nvptx-none


/gcc/ -B/usr/x86_64-linux-gnu/bin/ -B/usr/x86_64-linux-gnu/lib/ -isystem
/usr/x86_64-linux-gnu/include -isystem /usr/x86
_64-linux-gnu/sys-include -isystem
/home/packages/gcc/15/gcc-15-15-20241116/build/sys-include   -fno-checking
supports -
c -o file.o... ../../../src/libgomp/plugin/plugin-nvptx.c: In function
'nvptx_open_device':
../../../src/libgomp/plugin/plugin-nvptx.c:177:19: error: incompatible types
when returning type '_Bool' but 'struct ptx
_device *' was expected
  177 |   CUDA_CALL_ERET (false, FN, __VA_ARGS__)
      |                   ^~~~~
../../../src/libgomp/plugin/plugin-nvptx.c:172:16: note: in definition of macro
'CUDA_CALL_ERET'
  172 |         return ERET;                            \
      |                ^~~~
../../../src/libgomp/plugin/plugin-nvptx.c:598:7: note: in expansion of macro
'CUDA_CALL'
  598 |       CUDA_CALL (cuCtxSetLimit,
      |       ^~~~~~~~~
make[8]: Leaving directory
'/home/packages/gcc/15/gcc-15-15-20241116/build/x86_64-linux-gnu/libgomp'

Reply via email to