RISC-V: Define __riscv_cmodel_medany for PIC mode.
authorKito Cheng <kito.cheng@sifive.com>
Fri, 25 Sep 2020 02:57:16 +0000 (10:57 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 29 Sep 2020 08:59:14 +0000 (16:59 +0800)
commit30784833af015a9a74f5315d54f9dc08e1bbdf94
tree32ca492b193cb0ba18c9fb1af9da9742bbcafcd0
parentf322701e2465cac017d45a93fb336aceeee96630
RISC-V: Define __riscv_cmodel_medany for PIC mode.

 - According the conclusion in RISC-V C API document, we decide to deprecat
   the __riscv_cmodel_pic marco

 - __riscv_cmodel_pic is deprecated and will removed in next GCC
   release.

[1] https://github.com/riscv/riscv-c-api-doc/pull/11

gcc/ChangeLog:

* config/riscv/riscv-c.c (riscv_cpu_cpp_builtins): Define
__riscv_cmodel_medany when PIC mode.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/predef-3.c: Update testcase.
* gcc.target/riscv/predef-6.c: Ditto.
gcc/config/riscv/riscv-c.c
gcc/testsuite/gcc.target/riscv/predef-3.c
gcc/testsuite/gcc.target/riscv/predef-6.c