[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 441e5bbc0e7bd87d87e434afe0293c606f9aebb3..f76a6ce676a9764279b079b7f5f006d94fc528a9 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 4a9dd07f558fc444372cf217ea4c8620c0acf7b1..4d7ac3281b417489f90128923038493735ffca3f 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)}}}}}" }