Skip to content

Commit 1edd5ff

Browse files
committed
Disable Arm Compiler 5 and Use Arm Compiler 6 by default
1 parent f907012 commit 1edd5ff

File tree

5 files changed

+6
-67
lines changed

5 files changed

+6
-67
lines changed

tools/profiles/debug.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit",
1616
"-Wl,-n"]
1717
},
18-
"ARMC6": {
18+
"ARM": {
1919
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-g", "-O0",
2020
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
2121
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
@@ -26,27 +26,6 @@
2626
"ld": ["--verbose", "--remove", "--legacyalign", "--no_strict_wchar_size",
2727
"--no_strict_enum_size"]
2828
},
29-
"ARM": {
30-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
31-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
32-
"--multibyte_chars", "-O0", "-g", "-DMBED_DEBUG",
33-
"-DMBED_TRAP_ERRORS_ENABLED=1"],
34-
"asm": [],
35-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
36-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
37-
"ld": ["--show_full_path"]
38-
},
39-
"uARM": {
40-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
41-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
42-
"--multibyte_chars", "-O0", "-D__MICROLIB", "-g",
43-
"--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD", "-DMBED_DEBUG",
44-
"-DMBED_TRAP_ERRORS_ENABLED=1"],
45-
"asm": [],
46-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
47-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
48-
"ld": ["--library_type=microlib"]
49-
},
5029
"IAR": {
5130
"common": [
5231
"--no_wrap_diagnostics", "-e",

tools/profiles/develop.json

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit",
1515
"-Wl,-n"]
1616
},
17-
"ARMC6": {
17+
"ARM": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Os",
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
2020
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
@@ -24,25 +24,6 @@
2424
"cxx": ["-fno-rtti", "-std=gnu++98"],
2525
"ld": ["--legacyalign", "--no_strict_wchar_size", "--no_strict_enum_size"]
2626
},
27-
"ARM": {
28-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
29-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
30-
"--multibyte_chars", "-O3"],
31-
"asm": [],
32-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
33-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
34-
"ld": ["--show_full_path"]
35-
},
36-
"uARM": {
37-
"common": ["-c", "--gnu", "-Otime", "--split_sections",
38-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
39-
"--multibyte_chars", "-O3", "-D__MICROLIB",
40-
"--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD"],
41-
"asm": [],
42-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
43-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
44-
"ld": ["--library_type=microlib"]
45-
},
4627
"IAR": {
4728
"common": [
4829
"--no_wrap_diagnostics", "-e",

tools/profiles/release.json

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit",
1515
"-Wl,-n"]
1616
},
17-
"ARMC6": {
17+
"ARM": {
1818
"common": ["-c", "--target=arm-arm-none-eabi", "-mthumb", "-Oz",
1919
"-Wno-armcc-pragma-push-pop", "-Wno-armcc-pragma-anon-unions",
2020
"-DMULADDC_CANNOT_USE_R7", "-fdata-sections",
@@ -24,25 +24,6 @@
2424
"cxx": ["-fno-rtti", "-std=gnu++98"],
2525
"ld": ["--legacyalign", "--no_strict_wchar_size", "--no_strict_enum_size"]
2626
},
27-
"ARM": {
28-
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
29-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
30-
"--multibyte_chars", "-O3", "-DNDEBUG"],
31-
"asm": [],
32-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
33-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
34-
"ld": ["--show_full_path"]
35-
},
36-
"uARM": {
37-
"common": ["-c", "--gnu", "-Ospace", "--split_sections",
38-
"--apcs=interwork", "--brief_diagnostics", "--restrict",
39-
"--multibyte_chars", "-O3", "-D__MICROLIB",
40-
"--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD", "-DNDEBUG"],
41-
"asm": [],
42-
"c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"],
43-
"cxx": ["--cpp", "--no_rtti", "--no_vla"],
44-
"ld": ["--library_type=microlib"]
45-
},
4627
"IAR": {
4728
"common": [
4829
"--no_wrap_diagnostics", "-e",

tools/toolchains/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,6 @@ def report(self):
15721572

15731573
TOOLCHAIN_PATHS = {
15741574
'ARM': ARM_PATH,
1575-
'uARM': ARM_PATH,
15761575
'ARMC6': ARMC6_PATH,
15771576
'GCC_ARM': GCC_ARM_PATH,
15781577
'IAR': IAR_PATH
@@ -1583,9 +1582,7 @@ def report(self):
15831582
from tools.toolchains.iar import IAR
15841583

15851584
TOOLCHAIN_CLASSES = {
1586-
'ARM': ARM_STD,
1587-
'uARM': ARM_MICRO,
1588-
'ARMC6': ARMC6,
1585+
'ARM': ARMC6,
15891586
'GCC_ARM': GCC_ARM,
15901587
'IAR': IAR
15911588
}

tools/toolchains/arm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ class ARMC6(ARM_STD):
296296
"CortexM33-NS", "Cortex-A9"]
297297
@staticmethod
298298
def check_executable():
299-
return mbedToolchain.generic_check_executable("ARMC6", "armclang", 1)
299+
return(mbedToolchain.generic_check_executable("ARMC6", "armclang", 1) or
300+
mbedToolchain.generic_check_executable("ARM", "armclang", 1))
300301

301302
def __init__(self, target, *args, **kwargs):
302303
mbedToolchain.__init__(self, target, *args, **kwargs)

0 commit comments

Comments
 (0)