Skip to content

Commit 51da3b1

Browse files
authored
Merge pull request #249 from github/jsinglet/enable-qcc-testing
Integrate QCC Into Compiler Testing Framework
2 parents 466eae8 + 193a76a commit 51da3b1

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

c/cert/test/rules/ARR39-C/test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ void f1() {
2727
(void)v1[10 / sizeof(v1)]; // NON_COMPLIANT
2828
v4 += offset; // COMPLIANT
2929
f2(offset, 2);
30-
}
30+
}
31+
//

scripts/matrix_testing/CompileFixTool.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ param(
1414
[string]
1515
$Language,
1616

17-
# The compiler to use. Valid values are 'clang' and 'arm-clang'.
17+
# The compiler to use.
1818
[Parameter(Mandatory)]
19-
[ValidateSet('clang', 'armclang', 'tiarmclang', 'gcc')]
19+
[ValidateSet('clang', 'armclang', 'tiarmclang', 'gcc', 'qcc')]
2020
[string]
2121
$Configuration
2222
)

scripts/matrix_testing/Config.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ $COMPILER_MAPPINGS = @{
66
"gcc" = "g++";
77
"armclang" = "armclang";
88
"tiarmclang" = "tiarmclang";
9+
"qcc" = "qcc";
910
};
1011

1112
"c" = @{
1213
"clang" = "clang";
1314
"gcc" = "gcc";
15+
"qcc" = "qcc";
1416
};
1517
}
1618

@@ -20,11 +22,13 @@ $COMPILER_ARGS = @{
2022
"gcc" = "-std=c++14 -fsyntax-only";
2123
"armclang" = "-std=c++14 -fsyntax-only --target=arm-arm-none-eabi";
2224
"tiarmclang" = "-std=c++14 -fsyntax-only --target=arm-arm-none-eabi";
25+
"qcc" = "-lang-c++ -V8.3.0 -Wc,-fsyntax-only -c -nopipe -std=c++14 -D_QNX_SOURCE -Vgcc_ntoaarch64le_cxx";
2326
};
2427

2528
"c" = @{
2629
"gcc" = "-fsyntax-only -std=c11";
2730
"clang" = "-fsyntax-only -std=c11";
31+
"qcc" = "-V8.3.0 -Wc,-fsyntax-only -c -nopipe -std=c11 -Vgcc_ntoaarch64le";
2832
};
2933

3034
}

scripts/matrix_testing/CreateMatrixTestReport.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ All Parameters:
5353
Accept wildcard characters? false
5454
5555
-Configuration <String>
56-
The compiler to use. Valid values are 'clang' and 'arm-clang'.
56+
The compiler to use.
5757
5858
Required? true
5959
Position? named
@@ -140,9 +140,9 @@ param(
140140
[string]
141141
$NumThreads = 10,
142142

143-
# The compiler to use. Valid values are 'clang' and 'arm-clang'.
143+
# The compiler to use.
144144
[Parameter(Mandatory)]
145-
[ValidateSet('clang', 'armclang', 'tiarmclang', 'gcc')]
145+
[ValidateSet('clang', 'armclang', 'tiarmclang', 'gcc', 'qcc')]
146146
[string]
147147
$Configuration,
148148

0 commit comments

Comments
 (0)