diff options
author | Nathan Sidwell <nathan@acm.org> | 2016-05-13 12:57:50 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2016-05-13 12:57:50 +0000 |
commit | ac3d02e247208eff86d084d9f7517adc74f9751c (patch) | |
tree | 535c973833914e9b842a1784d581fbca1094544e /gcc/testsuite | |
parent | 7549163c15796e33369661ea90cc6a6900d13fc2 (diff) | |
download | gcc-ac3d02e247208eff86d084d9f7517adc74f9751c.zip gcc-ac3d02e247208eff86d084d9f7517adc74f9751c.tar.gz gcc-ac3d02e247208eff86d084d9f7517adc74f9751c.tar.bz2 |
nvptx.c (write_fn_proto): Handle BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
gcc/
* config/nvptx/nvptx.c (write_fn_proto): Handle
BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
gcc/testsuite/
* gcc.dg/atomic-noinline-aux.c: Include stddef.h. Fix
__atomic_is_lock_free declaration.
From-SVN: r236209
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/atomic-noinline-aux.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57b7580..3e971cd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-05-13 Nathan Sidwell <nathan@acm.org> + + * gcc.dg/atomic-noinline-aux.c: Include stddef.h. Fix + __atomic_is_lock_free declaration. + 2016-05-13 Richard Biener <rguenther@suse.de> PR tree-optimization/42587 diff --git a/gcc/testsuite/gcc.dg/atomic-noinline-aux.c b/gcc/testsuite/gcc.dg/atomic-noinline-aux.c index 9798979..f0e3387b 100644 --- a/gcc/testsuite/gcc.dg/atomic-noinline-aux.c +++ b/gcc/testsuite/gcc.dg/atomic-noinline-aux.c @@ -7,6 +7,7 @@ the exact entry points the test file will require. All these routines simply set the first parameter to 1, and the caller will test for that. */ +#include <stddef.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> @@ -64,7 +65,7 @@ __atomic_fetch_nand_1 (unsigned char *p, unsigned char v, int i) return ret; } -bool __atomic_is_lock_free (int i, void *p) +bool __atomic_is_lock_free (size_t i, void *p) { *(short *)p = 1; return true; |