]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS): Consider TARGET_CPU_DEFAULT settings.
authorMonk Chiang <sh.chiang04@gmail.com>
Thu, 19 Dec 2013 08:32:20 +0000 (08:32 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Thu, 19 Dec 2013 08:32:20 +0000 (08:32 +0000)
2013-12-19  Monk Chiang  <sh.chiang04@gmail.com>

gcc/
* common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
Consider TARGET_CPU_DEFAULT settings.

From-SVN: r206106

gcc/ChangeLog
gcc/common/config/nds32/nds32-common.c

index 660deebf9c8619342af226afd518d0258b76453d..5cd142256aca7e4658d2b96d18e5b9bffdecc324 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-19  Monk Chiang  <sh.chiang04@gmail.com>
+
+       * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
+       Consider TARGET_CPU_DEFAULT settings.
+
 2013-12-18  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/aarch64/aarch64-cores.def: Add support for
index f82f725af14edcb268d9e301dcb7704233ba01fb..6a2ef81a1fa65e77c94c934f072b93eab585834c 100644 (file)
@@ -86,14 +86,23 @@ static const struct default_options nds32_option_optimization_table[] =
 \f
 /* Run-time Target Specification.  */
 
-/* Default enable
+/* The default target flags consist of
+   TARGET_CPU_DEFAULT and other MASK_XXX flags.
+
+   The value of TARGET_CPU_DEFAULT is set by
+   the process of 'configure' and 'make' stage.
+   Please check gcc/config.gcc for more implementation detail.
+
+   Other MASK_XXX flags are set individually.
+   By default we enable
      TARGET_GP_DIRECT: Generate gp-imply instruction.
      TARGET_16_BIT   : Generate 16/32 bit mixed length instruction.
      TARGET_PERF_EXT : Generate performance extention instrcution.
      TARGET_CMOV     : Generate conditional move instruction.  */
 #undef TARGET_DEFAULT_TARGET_FLAGS
 #define TARGET_DEFAULT_TARGET_FLAGS            \
-  (MASK_GP_DIRECT                              \
+  (TARGET_CPU_DEFAULT                          \
+   | MASK_GP_DIRECT                            \
    | MASK_16_BIT                               \
    | MASK_PERF_EXT                             \
    | MASK_CMOV)