summaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-19 08:32:20 +0000
committerjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-19 08:32:20 +0000
commitf2d32ded5ce6cd5c7211258c4c5cdfe13e544758 (patch)
tree89a2f1c0178daa18f7c4bda9491a106e2b68cbd9 /gcc/common
parent495ec164bd7e248bdaff0e62e5f0d4e42598a0a1 (diff)
downloadgcc-f2d32ded5ce6cd5c7211258c4c5cdfe13e544758.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206106 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common')
-rw-r--r--gcc/common/config/nds32/nds32-common.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/gcc/common/config/nds32/nds32-common.c b/gcc/common/config/nds32/nds32-common.c
index f82f725af14..6a2ef81a1fa 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)