[libc-commits] [libc] fb23fab - [libc] Fix forward octal prefix (#73526)

via libc-commits libc-commits at lists.llvm.org
Mon Nov 27 07:21:24 PST 2023


Author: Guillaume Chatelet
Date: 2023-11-27T16:21:20+01:00
New Revision: fb23fabc190f528e09d85505c094666bb75fbf11

URL: https://github.com/llvm/llvm-project/commit/fb23fabc190f528e09d85505c094666bb75fbf11
DIFF: https://github.com/llvm/llvm-project/commit/fb23fabc190f528e09d85505c094666bb75fbf11.diff

LOG: [libc] Fix forward octal prefix (#73526)

To fix failing build bots after :
https://github.com/llvm/llvm-project/pull/73372

```
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/src/__support/macros/properties/float.h:40:71: error: invalid digit '9' in octal constant
#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 0900)) || \
```

Added: 
    

Modified: 
    libc/src/__support/macros/properties/float.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/macros/properties/float.h b/libc/src/__support/macros/properties/float.h
index 3bfd04156893699..7e00ddc8f0cd327 100644
--- a/libc/src/__support/macros/properties/float.h
+++ b/libc/src/__support/macros/properties/float.h
@@ -37,7 +37,7 @@
 #endif
 #endif
 #if defined(LIBC_TARGET_ARCH_IS_AARCH64)
-#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 0900)) || \
+#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 900)) ||  \
     (defined(LIBC_COMPILER_GCC_VER) && (LIBC_COMPILER_GCC_VER >= 1301))
 #define LIBC_COMPILER_HAS_C23_FLOAT16
 #endif
@@ -61,7 +61,7 @@ using float16 = _Float16;
      defined(LIBC_TARGET_ARCH_IS_X86_64))
 #define LIBC_COMPILER_HAS_C23_FLOAT128
 #endif
-#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 0500)) && \
+#if (defined(LIBC_COMPILER_CLANG_VER) && (LIBC_COMPILER_CLANG_VER >= 500)) &&  \
     (defined(LIBC_TARGET_ARCH_IS_X86_64))
 #define LIBC_COMPILER_HAS_FLOAT128_EXTENSION
 #endif


        


More information about the libc-commits mailing list