]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add --with-cmodel configure option
authorHau Hsu <hau.hsu@sifive.com>
Fri, 2 Aug 2024 05:11:51 +0000 (13:11 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 6 Dec 2024 09:27:36 +0000 (17:27 +0800)
commitfeea589d78fd5ebe1c02cf937e184d2c66cd99ed
tree47e5ed5e4495c10f3e9c89648459afdfbfdbb882
parentccd6ec23177f7a4ed69fabad8e79d5d4da419fb2
RISC-V: Add --with-cmodel configure option

Sometimes we want to use default cmodel other than medlow. Add a GCC
configure option for that.

gcc/ChangeLog:

* config.gcc (riscv*-*-*): Add support for --with-cmodel configure option.
(all_defaults): Add cmodel.
* config/riscv/riscv.h (TARGET_DEFAULT_CMODEL): Remove.
* doc/install.texi: Document --with-cmodel configure option.
* doc/invoke.texi (-mcmodel): Mention --with-cmodel configure option.

Co-authored-by: Kito Cheng <kito.cheng@sifive.com>
gcc/config.gcc
gcc/config/riscv/riscv.h
gcc/doc/install.texi
gcc/doc/invoke.texi