This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix atomic test


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();
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]