From: Thomas Schwinge Date: Thu, 16 Feb 2023 20:59:55 +0000 (+0100) Subject: Un-break nvptx libgomp build X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cc0e7bebf1b3ad6aacf75419e7f06942409f90c;p=thirdparty%2Fgcc.git Un-break nvptx libgomp build In file included from [...]/libgomp/config/nvptx/allocator.c:49: [...]/libgomp/config/nvptx/../../basic-allocator.c:52:2: error: invalid preprocessing directive #deine; did you mean #define? 52 | #deine BASIC_ALLOC_YIELD | ^~~~~ | define Yes, indeed. Fix-up for og12 commit 9583738a62a33a276b2aad980a27e77097f95924 "nvptx, libgomp: Move the low-latency allocator code". libgomp/ * basic-allocator.c (BASIC_ALLOC_YIELD): instead of '#deine', '#define' it. --- diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index ecc14b4f5376..b667c72b8ca8 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,5 +1,8 @@ 2023-02-16 Thomas Schwinge + * basic-allocator.c (BASIC_ALLOC_YIELD): instead of '#deine', + '#define' it. + * testsuite/libgomp.c/usm-1.c: Re-enable non-GCN offloading compilation. * testsuite/libgomp.c/usm-2.c: Likewise. diff --git a/libgomp/basic-allocator.c b/libgomp/basic-allocator.c index 94b99a89e0b1..b4b9e4ba13a7 100644 --- a/libgomp/basic-allocator.c +++ b/libgomp/basic-allocator.c @@ -49,7 +49,7 @@ #endif #ifndef BASIC_ALLOC_YIELD -#deine BASIC_ALLOC_YIELD +#define BASIC_ALLOC_YIELD #endif #define ALIGN(VAR) (((VAR) + 7) & ~7) /* 8-byte granularity. */