summaryrefslogtreecommitdiffstats
path: root/libatomic
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-09-07 11:54:27 +0200
committerTom de Vries <tdevries@suse.de>2020-09-07 12:02:05 +0200
commitc9c87dc958a2ef3203cbdb88ed1b0575564a4279 (patch)
tree0c8d181f875f57e24d66355e3c7e3ec607a9af6a /libatomic
parentAdjust testcase. (diff)
downloadgcc-c9c87dc958a2ef3203cbdb88ed1b0575564a4279.tar.gz
gcc-c9c87dc958a2ef3203cbdb88ed1b0575564a4279.tar.bz2
gcc-c9c87dc958a2ef3203cbdb88ed1b0575564a4279.tar.xz
[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.
Diffstat (limited to 'libatomic')
-rw-r--r--libatomic/testsuite/libatomic.c/atomic-generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libatomic/testsuite/libatomic.c/atomic-generic.c b/libatomic/testsuite/libatomic.c/atomic-generic.c
index 11ef6c5831d..662467ea82a 100644
--- a/libatomic/testsuite/libatomic.c/atomic-generic.c
+++ b/libatomic/testsuite/libatomic.c/atomic-generic.c
@@ -9,6 +9,7 @@
9 9
10#include <stdlib.h> 10#include <stdlib.h>
11#include <stdbool.h> 11#include <stdbool.h>
12#include <string.h>
12 13
13extern void abort(); 14extern void abort();
14 15