[PATCH] D129689: [limits.h] USHRT_MAX fix for 16 bit architectures

2023-03-14 Thread Sebastian Perta via Phabricator via cfe-commits
SebastianPerta added a comment. @cor3ntin can I close it? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129689/new/ https://reviews.llvm.org/D129689 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[PATCH] D129689: [limits.h] USHRT_MAX fix for 16 bit architectures

2022-10-10 Thread Sebastian Perta via Phabricator via cfe-commits
SebastianPerta added a comment. >>are you planning to update the patch Yes, sorry about the delay. I will update the patch before the end of the week. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129689/new/ https://reviews.llvm.org/D129689

[PATCH] D129689: [limits.h] USHRT_MAX fix for 16 bit architectures

2022-07-14 Thread Sebastian Perta via Phabricator via cfe-commits
SebastianPerta added a comment. >>But can you add some test coverage for this? In clang\test\Headers\limits.cpp there is: _Static_assert(USHRT_MAX == (unsigned short)~0ULL, ""); However as I said this needs a 16 bits target. Looking at the RUN commands at the top of the file I think I can solve

[PATCH] D127363: [Lex] Fix for char32_t literal truncation on 16 bit architectures

2022-07-13 Thread Sebastian Perta via Phabricator via cfe-commits
SebastianPerta added a comment. >> Additionally, the type of a character constant in C is int. This means that char32_t c4 = U'\U00064321'; is invalid in C. I know that is clang more strict with the standard than GCC, however I would like to mention that in GCC the value is not truncated to 16

[PATCH] D127363: [Lex] Fix for char32_t literal truncation on 16 bit architectures

2022-06-09 Thread Sebastian Perta via Phabricator via cfe-commits
SebastianPerta added a comment. >> Regarding testing, it seems like this should change the diagnostic emitted >> for long x = 'abc' from "Character constant too long for its type" to >> "Multi-character character constant" when the target is AVR? Currently on RL78 it returns this warning withou

[PATCH] D127363: [Lex] Fix for char32_t literal truncation on 16 bit architectures

2022-06-08 Thread Sebastian Perta via Phabricator via cfe-commits
SebastianPerta created this revision. SebastianPerta added reviewers: aaron.ballman, sammccall, DaanDeMeyer. Herald added a subscriber: dylanmckay. Herald added a project: All. SebastianPerta requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.