gcc/libatomic/testsuite/libatomic.c
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
..
atomic-compare-exchange-1.c
atomic-compare-exchange-2.c
atomic-compare-exchange-3.c
atomic-compare-exchange-4.c
atomic-compare-exchange-5.c
atomic-exchange-1.c
atomic-exchange-2.c
atomic-exchange-3.c
atomic-exchange-4.c
atomic-exchange-5.c
atomic-generic.c [libatomic, testsuite] Add missing include in atomic-generic.c 2020-09-07 12:02:05 +02:00
atomic-load-1.c
atomic-load-2.c
atomic-load-3.c
atomic-load-4.c
atomic-load-5.c
atomic-op-1.c
atomic-op-2.c
atomic-op-3.c
atomic-op-4.c
atomic-op-5.c
atomic-store-1.c
atomic-store-2.c
atomic-store-3.c
atomic-store-4.c
atomic-store-5.c
c.exp
generic-2.c