public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-12] Un-break nvptx libgomp build
@ 2023-02-16 21:08 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-02-16 21:08 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6cc0e7bebf1b3ad6aacf75419e7f06942409f90c

commit 6cc0e7bebf1b3ad6aacf75419e7f06942409f90c
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Thu Feb 16 21:59:55 2023 +0100

    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:
---
 libgomp/ChangeLog.omp     | 3 +++
 libgomp/basic-allocator.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index ecc14b4f537..b667c72b8ca 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -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.
diff --git a/libgomp/basic-allocator.c b/libgomp/basic-allocator.c
index 94b99a89e0b..b4b9e4ba13a 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.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-16 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16 21:08 [gcc/devel/omp/gcc-12] Un-break nvptx libgomp build Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).