gcc/libgcc/config/nvptx
Tom de Vries 7b9c26519e [nvptx, libgcc] Fix Wbuiltin-declaration-mismatch in atomic.c
When building for target nvptx, we get this and similar warnings for libgcc:
...
src/libgcc/config/nvptx/atomic.c:39:1: warning: conflicting types for \
  built-in function ‘__sync_val_compare_and_swap_1’; expected \
  ‘unsigned char(volatile void *, unsigned char,  unsigned char)’ \
  [-Wbuiltin-declaration-mismatch]
...

Fix this by making sure in atomic.c that the pointers used are of type
'volatile void *'.

Tested by rebuilding atomic.c.

libgcc/ChangeLog:

	* config/nvptx/atomic.c (__SYNC_SUBWORD_COMPARE_AND_SWAP): Fix
	Wbuiltin-declaration-mismatch.
2020-09-09 19:22:07 +02:00
..
atomic.c [nvptx, libgcc] Fix Wbuiltin-declaration-mismatch in atomic.c 2020-09-09 19:22:07 +02:00
crt0.c Update copyright years. 2020-01-01 12:51:42 +01:00
mgomp.c Update copyright years. 2020-01-01 12:51:42 +01:00
nvptx-malloc.h Update copyright years. 2020-01-01 12:51:42 +01:00
reduction.c Update copyright years. 2020-01-01 12:51:42 +01:00
t-nvptx nvptx: Add support for subword compare-and-swap 2020-08-13 11:11:55 +02:00