diff options
author | liuzhensong <liuzhensong@loongson.cn> | 2021-10-22 16:42:06 +0800 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-10-24 21:36:32 +1030 |
commit | 4462d7c440247bfcdc464412332bbec13b8aab12 (patch) | |
tree | 7559eea153d11930124e45d3fa6ead17ceefde8e /gas/configure.ac | |
parent | e9a0721f8274daeffaedbc3cabc12c52d43a38a7 (diff) | |
download | gdb-4462d7c440247bfcdc464412332bbec13b8aab12.zip gdb-4462d7c440247bfcdc464412332bbec13b8aab12.tar.gz gdb-4462d7c440247bfcdc464412332bbec13b8aab12.tar.bz2 |
LoongArch gas support
2021-10-22 Chenghua Xu <xuchenghua@loongson.cn>
Zhensong Liu <liuzhensong@loongson.cn>
Weinan Liu <liuweinan@loongson.cn>
Xiaolin Tang <tangxiaolin@loongson.cn>
gas/
* Makefile.am: Add LoongArch.
* NEWS: Mention LoongArch support.
* config/loongarch-lex-wrapper.c: New.
* config/loongarch-lex.h: New.
* config/loongarch-lex.l: New.
* config/loongarch-parse.y: New.
* config/tc-loongarch.c: New.
* config/tc-loongarch.h: New.
* configure.ac: Add LoongArch.
* configure.tgt: Likewise.
* doc/as.texi: Likewise.
* doc/c-loongarch.texi: Likewise.
* Makefile.in: Regenerate.
* configure: Regenerate.
* po/POTFILES.in: Regenerate.
gas/testsuite/
* gas/all/gas.exp: Add LoongArch.
* gas/elf/elf.exp: Likewise.
* gas/loongarch/4opt_op.d: New.
* gas/loongarch/4opt_op.s: Likewise.
* gas/loongarch/fix_op.d: Likewise.
* gas/loongarch/fix_op.s: Likewise.
* gas/loongarch/float_op.d: Likewise.
* gas/loongarch/float_op.s: Likewise.
* gas/loongarch/imm_op.d: Likewise.
* gas/loongarch/imm_op.s: Likewise.
* gas/loongarch/jmp_op.d: Likewise.
* gas/loongarch/jmp_op.s: Likewise.
* gas/loongarch/load_store_op.d: Likewise.
* gas/loongarch/load_store_op.s: Likewise.
* gas/loongarch/loongarch.exp: Likewise.
* gas/loongarch/macro_op.d: Likewise.
* gas/loongarch/macro_op.s: Likewise.
* gas/loongarch/nop.d: Likewise.
* gas/loongarch/nop.s: Likewise.
* gas/loongarch/privilege_op.d: Likewise.
* gas/loongarch/privilege_op.s: Likewise.
* gas/loongarch/syscall.d: Likewise.
* gas/loongarch/syscall.s: Likewise.
* lib/gas-defs.exp: Add LoongArch.
Diffstat (limited to 'gas/configure.ac')
-rw-r--r-- | gas/configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gas/configure.ac b/gas/configure.ac index e237426..127f758 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -446,6 +446,19 @@ changequote([,])dnl using_cgen=yes ;; + loongarch) + for f in config/loongarch-parse.o config/loongarch-lex-wrapper.o; do + case " $extra_objects " in + *" $f "*) ;; + *) extra_objects="$extra_objects $f" ;; + esac + done + # --target=loongarch[32|64]-*-*. */ + if test $this_target = $target ; then + AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.]) + fi + ;; + m32c) using_cgen=yes ;; |