Skip to content

Commit 77195a5

Browse files
arichardsontstellar
authored andcommitted
[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/llvm-project#115957 Reviewed By: zixuan-wu Pull Request: llvm/llvm-project#115961 (cherry picked from commit d204724)
1 parent dc1bd6a commit 77195a5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,7 @@ static bool isSignedCharDefault(const llvm::Triple &Triple) {
13581358
return true;
13591359
return false;
13601360

1361+
case llvm::Triple::csky:
13611362
case llvm::Triple::hexagon:
13621363
case llvm::Triple::msp430:
13631364
case llvm::Triple::ppcle:

clang/test/Driver/csky-toolchain.c

Lines changed: 1 addition & 0 deletions
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)