diff options
author | Cooper Qu <cooper.qu@linux.alibaba.com> | 2020-09-13 20:48:06 +0800 |
---|---|---|
committer | Lifang Xia <xlf194833_xia@alibaba-inc.com> | 2020-09-14 20:26:57 +0800 |
commit | 74fea55bb7bc24902bbc45f0510a0b68e9bceee4 (patch) | |
tree | 2a4becf80de710ab23d42f826664131e84d6f848 /gas | |
parent | ee6372f2112b53d7233e8565c52c2429440db488 (diff) | |
download | gdb-74fea55bb7bc24902bbc45f0510a0b68e9bceee4.zip gdb-74fea55bb7bc24902bbc45f0510a0b68e9bceee4.tar.gz gdb-74fea55bb7bc24902bbc45f0510a0b68e9bceee4.tar.bz2 |
CSKY: Set feature flags for default cpu.
Fix floating point instructions not recognized when building GCC.
gas/
PR 26608
* config/tc-csky.c (md_begin): Set feature flags for default
cpu.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-csky.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c index 3518b2a..808dca1 100644 --- a/gas/config/tc-csky.c +++ b/gas/config/tc-csky.c @@ -1625,15 +1625,13 @@ md_begin (void) struct csky_macro_info const *macro; struct csky_arch_info const *p_arch; struct csky_cpu_info const *p_cpu; - int flags; other_flag = (do_opt_mmp | do_opt_mcp | do_opt_mcache | do_opt_msecurity | do_opt_mhard_float); dsp_flag |= do_opt_mdsp | do_opt_medsp; isa_flag |= do_opt_mtrust | do_opt_mvdsp; - flags = other_flag; if (dsp_flag) - flags |= CSKY_ARCH_DSP; + other_flag |= CSKY_ARCH_DSP; if (mach_flag != 0) { @@ -1654,6 +1652,7 @@ md_begin (void) #else parse_cpu ("ck810"); #endif + mach_flag |= other_flag; #endif } |