[libc-commits] [libc] de03c46 - [libc] reverts for 32b arm (#78307)
via libc-commits
libc-commits at lists.llvm.org
Thu Jan 18 08:17:23 PST 2024
Author: Nick Desaulniers
Date: 2024-01-18T08:17:19-08:00
New Revision: de03c46b8bb0b280d2de7ec805df1343bb12eeda
URL: https://github.com/llvm/llvm-project/commit/de03c46b8bb0b280d2de7ec805df1343bb12eeda
DIFF: https://github.com/llvm/llvm-project/commit/de03c46b8bb0b280d2de7ec805df1343bb12eeda.diff
LOG: [libc] reverts for 32b arm (#78307)
These were fixed properly by f1f1875c18b8.
- Revert "[libc] temporarily set -Wno-shorten-64-to-32 (#77396)"
- Revert "[libc] make off_t 32b for 32b arm (#77350)"
Added:
Modified:
libc/include/llvm-libc-types/off_t.h
libc/src/sys/mman/linux/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/include/llvm-libc-types/off_t.h b/libc/include/llvm-libc-types/off_t.h
index a0cbe992189d00..111b29aa68d875 100644
--- a/libc/include/llvm-libc-types/off_t.h
+++ b/libc/include/llvm-libc-types/off_t.h
@@ -9,10 +9,6 @@
#ifndef __LLVM_LIBC_TYPES_OFF_T_H__
#define __LLVM_LIBC_TYPES_OFF_T_H__
-#if defined(__LP64__) || defined(__riscv)
typedef __INT64_TYPE__ off_t;
-#else
-typedef __INT32_TYPE__ off_t;
-#endif // __LP64__ || __riscv
#endif // __LLVM_LIBC_TYPES_OFF_T_H__
diff --git a/libc/src/sys/mman/linux/CMakeLists.txt b/libc/src/sys/mman/linux/CMakeLists.txt
index 08694ec48be397..163e7dead8887a 100644
--- a/libc/src/sys/mman/linux/CMakeLists.txt
+++ b/libc/src/sys/mman/linux/CMakeLists.txt
@@ -22,9 +22,6 @@ add_entrypoint_object(
libc.include.sys_syscall
libc.src.__support.OSUtil.osutil
libc.src.errno.errno
- COMPILE_OPTIONS
- # TODO: https://github.com/llvm/llvm-project/issues/77395
- -Wno-shorten-64-to-32
)
add_entrypoint_object(
More information about the libc-commits
mailing list