Skip to content

Commit c50518e

Browse files
author
deepikabhavnani
committed
-march not required if -mcpu is set
GCC_ARM throws warning if both architecture and core are set (though correct). If CPU option is set correctly, architecture is set by compiler itself.
1 parent 964e6e7 commit c50518e

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)