gcc/libatomic/testsuite
Tom de Vries c9c87dc958 [libatomic, testsuite] Add missing include in atomic-generic.c
When compiling atomic-generic.c from the libatomic testsuite, we run into:
...
$ gcc src/libatomic/testsuite/libatomic.c/atomic-generic.c -latomic
src/libatomic/testsuite/libatomic.c/atomic-generic.c: In function ‘main’:
src/libatomic/testsuite/libatomic.c/atomic-generic.c:31:7: warning: \
  implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration]
   if (memcmp (&a, &zero, size))
       ^~~~~~
...

Fix this by adding the missing string.h include.

Tested on x86_64.

libatomic/ChangeLog:

	* testsuite/libatomic.c/atomic-generic.c: Include string.h.
2020-09-07 12:02:05 +02:00
..
config Update copyright years. 2020-01-01 12:51:42 +01:00
lib [testsuite] Add scan-ltrans-tree-dump 2018-05-02 12:16:32 +00:00
libatomic.c [libatomic, testsuite] Add missing include in atomic-generic.c 2020-09-07 12:02:05 +02:00
libatomic-site-extra.exp.in libatomic/test: Fix compilation for build sysroot 2020-04-06 23:32:44 +01:00
Makefile.am libatomic/test: Fix compilation for build sysroot 2020-04-06 23:32:44 +01:00
Makefile.in libatomic/test: Fix compilation for build sysroot 2020-04-06 23:32:44 +01:00