From 6cc0e7bebf1b3ad6aacf75419e7f06942409f90c Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <thomas@codesourcery.com>
Date: Thu, 16 Feb 2023 21:59:55 +0100
Subject: [PATCH] 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.
---
libgomp/ChangeLog.omp | 3 +++
libgomp/basic-allocator.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
@@ -1,5 +1,8 @@
2023-02-16 Thomas Schwinge <thomas@codesourcery.com>
+ * 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.
@@ -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. */
--
2.25.1