diff mbox

Fix atomic test

Message ID 56507AAD.9040708@acm.org
State New
Headers show

Commit Message

Nathan Sidwell Nov. 21, 2015, 2:07 p.m. UTC
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
diff mbox

Patch

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