Skip to content

Commit 02eeb7a

Browse files
authored
Merge pull request #6030 from deepikabhavnani/correct_arch
M33: -march not required if -mcpu is set
2 parents 1c5c1c7 + c50518e commit 02eeb7a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tools/toolchains/gcc.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ def __init__(self, target, notify=None, macros=None,
8686
self.cpu.append("-mfloat-abi=hard")
8787
self.cpu.append("-mno-unaligned-access")
8888

89-
if target.core.startswith("Cortex-M23"):
90-
self.cpu.append("-march=armv8-m.base")
91-
elif target.core.startswith("Cortex-M33"):
92-
self.cpu.append("-march=armv8-m.main")
93-
9489
if target.core == "Cortex-M23" or target.core == "Cortex-M33":
9590
self.cpu.append("-mcmse")
9691

0 commit comments

Comments
 (0)