From: Monk Chiang Date: Thu, 19 Dec 2013 08:32:20 +0000 (+0000) Subject: nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS): Consider TARGET_CPU_DEFAULT settings. X-Git-Tag: releases/gcc-4.9.0~1993 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc1719e8a062e8634c86d7c79868252463907adf;p=thirdparty%2Fgcc.git nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS): Consider TARGET_CPU_DEFAULT settings. 2013-12-19 Monk Chiang gcc/ * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS): Consider TARGET_CPU_DEFAULT settings. From-SVN: r206106 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 660deebf9c86..5cd142256aca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-12-19 Monk Chiang + + * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS): + Consider TARGET_CPU_DEFAULT settings. + 2013-12-18 James Greenhalgh * config/aarch64/aarch64-cores.def: Add support for diff --git a/gcc/common/config/nds32/nds32-common.c b/gcc/common/config/nds32/nds32-common.c index f82f725af14e..6a2ef81a1fa6 100644 --- a/gcc/common/config/nds32/nds32-common.c +++ b/gcc/common/config/nds32/nds32-common.c @@ -86,14 +86,23 @@ static const struct default_options nds32_option_optimization_table[] = /* 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)