This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix atomic test
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 21 Nov 2015 09:07:41 -0500
- Subject: Fix atomic test
- Authentication-results: sourceware.org; auth=none
I've committed this to fix gcc.dg/atomic-generic.c. It was calling memcmp
without a declaration in scope, and passing a plain int as the 3rd argument
instead of directly using sizeof or casting to size_t. This blew up PTX with a
type mismatch.
nathan
2015-11-21 Nathan Sidwell <nathan@acm.org>
* gcc.dg/atomic-generic.c: Include <string.h>.
Index: testsuite/gcc.dg/atomic-generic.c
===================================================================
--- testsuite/gcc.dg/atomic-generic.c (revision 230704)
+++ testsuite/gcc.dg/atomic-generic.c (working copy)
@@ -10,6 +10,7 @@
#include <stdlib.h>
#include <stdbool.h>
+#include <string.h>
extern void abort();