[v2] RISC-V: remove deprecate pic code model macro
Commit Message
Came across this deprecated symbol when looking around for
-mexplicit-relocs handling in code
Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
---
gcc/config/riscv/riscv-c.cc | 3 ---
gcc/testsuite/gcc.target/riscv/predef-1.c | 3 ---
gcc/testsuite/gcc.target/riscv/predef-2.c | 3 ---
gcc/testsuite/gcc.target/riscv/predef-3.c | 3 ---
gcc/testsuite/gcc.target/riscv/predef-4.c | 3 ---
gcc/testsuite/gcc.target/riscv/predef-5.c | 3 ---
gcc/testsuite/gcc.target/riscv/predef-6.c | 3 ---
gcc/testsuite/gcc.target/riscv/predef-7.c | 3 ---
gcc/testsuite/gcc.target/riscv/predef-8.c | 3 ---
9 files changed, 27 deletions(-)
Comments
On Sep 02 2022, Vineet Gupta wrote:
> diff --git a/gcc/config/riscv/riscv-c.cc b/gcc/config/riscv/riscv-c.cc
> index eb7ef09297e9..bba72cf77a82 100644
> --- a/gcc/config/riscv/riscv-c.cc
> +++ b/gcc/config/riscv/riscv-c.cc
> @@ -93,9 +93,6 @@ riscv_cpu_cpp_builtins (cpp_reader *pfile)
> break;
>
> case CM_PIC:
> - /* __riscv_cmodel_pic is deprecated, and will removed in next GCC release.
> - see https://github.com/riscv/riscv-c-api-doc/pull/11 */
> - builtin_define ("__riscv_cmodel_pic");
> /* FALLTHROUGH. */
>
> case CM_MEDANY:
If there is nothing left between the case labels the fallthrough comment
is no longer needed.
@@ -93,9 +93,6 @@ riscv_cpu_cpp_builtins (cpp_reader *pfile)
break;
case CM_PIC:
- /* __riscv_cmodel_pic is deprecated, and will removed in next GCC release.
- see https://github.com/riscv/riscv-c-api-doc/pull/11 */
- builtin_define ("__riscv_cmodel_pic");
/* FALLTHROUGH. */
case CM_MEDANY:
@@ -57,9 +57,6 @@ int main () {
#endif
#if defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
-#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
#endif
return 0;
@@ -57,9 +57,6 @@ int main () {
#endif
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
-#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
#endif
return 0;
@@ -57,9 +57,6 @@ int main () {
#endif
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medany"
-#endif
-#if !defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_pic"
#endif
return 0;
@@ -57,9 +57,6 @@ int main () {
#endif
#if defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
-#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
#endif
return 0;
@@ -57,9 +57,6 @@ int main () {
#endif
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
-#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
#endif
return 0;
@@ -57,9 +57,6 @@ int main () {
#endif
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medany"
-#endif
-#if !defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medpic"
#endif
return 0;
@@ -57,9 +57,6 @@ int main () {
#endif
#if defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
-#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
#endif
return 0;
@@ -57,9 +57,6 @@ int main () {
#endif
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
-#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
#endif
return 0;