[libc-commits] [libc] [libc][z/OS] Remove ASCII trick to fix EBDIC std::from_char (PR #116078)
Sean Perry via libc-commits
libc-commits at lists.llvm.org
Thu Nov 21 08:52:42 PST 2024
perry-ca wrote:
(Zibi's off for a couple days. I'll answer in the meantime)
You don't really need to use a particular target triple. To compile something in EBCDIC you'll need:
1. the -fexec-charset option (see https://github.com/llvm/llvm-project/pull/74516 & https://github.com/abhina-sree/llvm-project/pull/1) or #pragma convert (follow on to these)
2. A way to got through the preprocessing paths for `defined(__MVS__)` && `!defined(__NATIVE_ASCII_F)`. This will then depend on macros or values defined in the z/OS headers (eg. `static const mask space = __ISSPACE;`)
This would be a specific build of libc++ for EBCDIC. We haven't tried enabling EBCDIC on other platforms. In theory it should work.
https://github.com/llvm/llvm-project/pull/116078
More information about the libc-commits
mailing list