[ARC] Pass along "-mcode-density" flag to "as"
authorShahab Vahedi <shahab@synopsys.com>
Wed, 2 Oct 2019 11:26:15 +0000 (11:26 +0000)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Wed, 2 Oct 2019 11:26:15 +0000 (13:26 +0200)
This change makes sure that if the driver is invoked with
"-mcode-density" flag, then the assembler will receive it
too.

gcc/
xxxx-xx-xx  Shahab Vahedi  <shahab@synopsys.com>

        * config/arc/arc.h (ASM_SPEC): pass -mcode-density

From-SVN: r276453

gcc/ChangeLog
gcc/config/arc/arc.h

index 441e5bb..f76a6ce 100644 (file)
@@ -1,3 +1,7 @@
+2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
+
+       * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
+
 2019-10-02  Richard Biener  <rguenther@suse.de>
 
        * tree-vectorizer.h (vect_transform_reduction): Declare.
index 4a9dd07..4d7ac32 100644 (file)
@@ -97,7 +97,8 @@ extern const char *arc_cpu_to_as (int argc, const char **argv);
 
 #undef ASM_SPEC
 #define ASM_SPEC  "%{mbig-endian|EB:-EB} %{EL} "                       \
-  "%:cpu_to_as(%{mcpu=*:%*}) %{mspfp*} %{mdpfp*} %{mfpu=fpuda*:-mfpuda}"
+  "%:cpu_to_as(%{mcpu=*:%*}) %{mspfp*} %{mdpfp*} "                      \
+  "%{mfpu=fpuda*:-mfpuda} %{mcode-density}"
 
 #define OPTION_DEFAULT_SPECS                                           \
   {"cpu", "%{!mcpu=*:%{!mARC*:%{!marc*:%{!mA7:%{!mA6:-mcpu=%(VALUE)}}}}}" }