Skip to content

Commit d204724

Browse files
authored
[CSKY] Default to unsigned char
This matches the ABI document found at https://github.com/c-sky/csky-doc/blob/master/C-SKY_V2_CPU_Applications_Binary_Interface_Standards_Manual.pdf Partially addresses llvm#115957 Reviewed By: zixuan-wu Pull Request: llvm#115961
1 parent e9a20f7 commit d204724

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,7 @@ static bool isSignedCharDefault(const llvm::Triple &Triple) {
13871387
return true;
13881388
return false;
13891389

1390+
case llvm::Triple::csky:
13901391
case llvm::Triple::hexagon:
13911392
case llvm::Triple::msp430:
13921393
case llvm::Triple::ppcle:

clang/test/Driver/csky-toolchain.c

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
// RUN: %clang -### %s --target=csky 2>&1 | FileCheck -check-prefix=CC1 %s
55
// CC1: "-cc1" "-triple" "csky"
6+
// CC1: "-fno-signed-char"
67

78
// In the below tests, --rtlib=platform is used so that the driver ignores
89
// the configure-time CLANG_DEFAULT_RTLIB option when choosing the runtime lib

0 commit comments

Comments
 (0)