Author: Sergei Barannikov Date: 2026-11-10T06:56:45Z New Revision: d04a473cee715180a380ac35becb1a7979ca5560
URL: https://github.com/llvm/llvm-project/commit/d04a473cee715180a380ac35becb1a7979ca5560 DIFF: https://github.com/llvm/llvm-project/commit/d04a473cee715180a380ac35becb1a7979ca5560.diff LOG: [AVR][MSP430] Explicitly specify the underlying type of wchar_t (NFC) (#240653) Make the choice deliberate instead of relying on the default. The changes are covered by existing preprocessor tests. Added: Modified: clang/lib/Basic/Targets/AVR.h clang/lib/Basic/Targets/MSP430.h Removed: ################################################################################ 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..2c2549ec7ffca6 100644 --- a/clang/lib/Basic/Targets/MSP430.h +++ b/clang/lib/Basic/Targets/MSP430.h @@ -44,6 +44,7 @@ class LLVM_LIBRARY_VISIBILITY MSP430TargetInfo : public TargetInfo { IntMaxType = SignedLongLong; IntPtrType = SignedInt; PtrDiffType = SignedInt; + WCharType = SignedInt; SigAtomicType = SignedLong; resetDataLayout(); } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
