Browse Source

arc: Use "-mcpu=archs" instead of deprecated "-marchs" for ARC HS

Newer ARC toolchains don't support "-marchs" option any longer.
Instead "-mcpu=archs" should be used. What's also important older
toiolchains that support ARC HS cores will also happily accept
"-mcpu=archs" so that's a very safe move.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Alexey Brodkin 9 years ago
parent
commit
7a54f5177a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      arch/arc/config.mk

+ 2 - 2
arch/arc/config.mk

@@ -43,11 +43,11 @@ PLATFORM_CPPFLAGS += -marcem
 endif
 endif
 
 
 ifdef CONFIG_CPU_ARCHS34
 ifdef CONFIG_CPU_ARCHS34
-PLATFORM_CPPFLAGS += -marchs
+PLATFORM_CPPFLAGS += -mcpu=archs
 endif
 endif
 
 
 ifdef CONFIG_CPU_ARCHS38
 ifdef CONFIG_CPU_ARCHS38
-PLATFORM_CPPFLAGS += -marchs
+PLATFORM_CPPFLAGS += -mcpu=archs
 endif
 endif
 
 
 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2
 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2