]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Un-break nvptx libgomp build
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 16 Feb 2023 20:59:55 +0000 (21:59 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 16 Feb 2023 21:08:01 +0000 (22:08 +0100)
    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
libgomp/basic-allocator.c

index ecc14b4f53769af381989fdce7be8b4a8b8ac084..b667c72b8ca8918ee721ba33988cbb5a82b2effb 100644 (file)
@@ -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.
index 94b99a89e0b1824bf614a0a25afa79652703ef65..b4b9e4ba13a74be0b366c6669af5d02e186dce5f 100644 (file)
@@ -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.  */