https://github.com/s-barannikov updated https://github.com/llvm/llvm-project/pull/240653
>From 61dbdaa93e2eb0239feb2a551777911476feb964 Mon Sep 17 00:00:00 2001 From: Sergei Barannikov <[email protected]> Date: Tue, 10 Nov 2026 04:29:13 +0300 Subject: [PATCH] [AVR][MSP430] Explicitly specify the underlying type of wchar_t (NFC) Make the choice deliberate instead of relying on the default. --- clang/lib/Basic/Targets/AVR.h | 1 + clang/lib/Basic/Targets/MSP430.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/clang/lib/Basic/Targets/AVR.h b/clang/lib/Basic/Targets/AVR.h index a49bbc0322816e..74f5b19b04f07c 100644 --- a/clang/lib/Basic/Targets/AVR.h +++ b/clang/lib/Basic/Targets/AVR.h @@ -53,6 +53,7 @@ class LLVM_LIBRARY_VISIBILITY AVRTargetInfo : public TargetInfo { PtrDiffType = SignedInt; IntPtrType = SignedInt; Char16Type = UnsignedInt; + WCharType = SignedInt; WIntType = SignedInt; Int16Type = SignedInt; Char32Type = UnsignedLong; diff --git a/clang/lib/Basic/Targets/MSP430.h b/clang/lib/Basic/Targets/MSP430.h index 96a243ef70fae5..02896cc2c73f9d 100644 --- a/clang/lib/Basic/Targets/MSP430.h +++ b/clang/lib/Basic/Targets/MSP430.h @@ -44,6 +44,8 @@ class LLVM_LIBRARY_VISIBILITY MSP430TargetInfo : public TargetInfo { IntMaxType = SignedLongLong; IntPtrType = SignedInt; PtrDiffType = SignedInt; + WCharType = SignedInt; + WIntType = UnsignedInt; SigAtomicType = SignedLong; resetDataLayout(); } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
