aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target
diff options
context:
space:
mode:
authorVineet Gupta <vineetg@rivosinc.com>2022-09-02 14:05:33 -0700
committerKito Cheng <kito.cheng@sifive.com>2022-10-05 10:20:29 +0800
commitb77bcdf445685f28dae9e42b69e006801d653001 (patch)
tree4e6004d26fadfc3f48a9d6672ea7e7c50b523f56 /gcc/testsuite/gcc.target
parentbfca9505f6fce631c2488f89aa156d56c7fae9ed (diff)
downloadgcc-b77bcdf445685f28dae9e42b69e006801d653001.zip
gcc-b77bcdf445685f28dae9e42b69e006801d653001.tar.gz
gcc-b77bcdf445685f28dae9e42b69e006801d653001.tar.bz2
RISC-V: remove deprecate pic code model macro
Came across this deprecated symbol when looking around for -mexplicit-relocs handling in code Signed-off-by: Vineet Gupta <vineetg@rivosinc.com> gcc/ChangeLog: * config/riscv/riscv-c.cc (riscv_cpu_cpp_builtins): Remove __riscv_cmodel_pic, that deprecated in last version. gcc/testsuite/ChangeLog: * gcc.target/riscv/predef-1.c: Remove __riscv_cmodel_pic check. * gcc.target/riscv/predef-2.c: Ditto. * gcc.target/riscv/predef-3.c: Ditto. * gcc.target/riscv/predef-4.c: Ditto. * gcc.target/riscv/predef-5.c: Ditto. * gcc.target/riscv/predef-6.c: Ditto. * gcc.target/riscv/predef-7.c: Ditto. * gcc.target/riscv/predef-8.c: Ditto.
Diffstat (limited to 'gcc/testsuite/gcc.target')
-rw-r--r--gcc/testsuite/gcc.target/riscv/predef-1.c3
-rw-r--r--gcc/testsuite/gcc.target/riscv/predef-2.c3
-rw-r--r--gcc/testsuite/gcc.target/riscv/predef-3.c3
-rw-r--r--gcc/testsuite/gcc.target/riscv/predef-4.c3
-rw-r--r--gcc/testsuite/gcc.target/riscv/predef-5.c3
-rw-r--r--gcc/testsuite/gcc.target/riscv/predef-6.c3
-rw-r--r--gcc/testsuite/gcc.target/riscv/predef-7.c3
-rw-r--r--gcc/testsuite/gcc.target/riscv/predef-8.c3
8 files changed, 0 insertions, 24 deletions
diff --git a/gcc/testsuite/gcc.target/riscv/predef-1.c b/gcc/testsuite/gcc.target/riscv/predef-1.c
index 2e57ce6..9dddc18 100644
--- a/gcc/testsuite/gcc.target/riscv/predef-1.c
+++ b/gcc/testsuite/gcc.target/riscv/predef-1.c
@@ -58,9 +58,6 @@ int main () {
#if defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
-#endif
return 0;
}
diff --git a/gcc/testsuite/gcc.target/riscv/predef-2.c b/gcc/testsuite/gcc.target/riscv/predef-2.c
index c85b3c9..755fe4e 100644
--- a/gcc/testsuite/gcc.target/riscv/predef-2.c
+++ b/gcc/testsuite/gcc.target/riscv/predef-2.c
@@ -58,9 +58,6 @@ int main () {
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
-#endif
return 0;
}
diff --git a/gcc/testsuite/gcc.target/riscv/predef-3.c b/gcc/testsuite/gcc.target/riscv/predef-3.c
index 82a89d4..5136453 100644
--- a/gcc/testsuite/gcc.target/riscv/predef-3.c
+++ b/gcc/testsuite/gcc.target/riscv/predef-3.c
@@ -58,9 +58,6 @@ int main () {
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medany"
#endif
-#if !defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_pic"
-#endif
return 0;
}
diff --git a/gcc/testsuite/gcc.target/riscv/predef-4.c b/gcc/testsuite/gcc.target/riscv/predef-4.c
index 5868d39..76b6fee 100644
--- a/gcc/testsuite/gcc.target/riscv/predef-4.c
+++ b/gcc/testsuite/gcc.target/riscv/predef-4.c
@@ -58,9 +58,6 @@ int main () {
#if defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
-#endif
return 0;
}
diff --git a/gcc/testsuite/gcc.target/riscv/predef-5.c b/gcc/testsuite/gcc.target/riscv/predef-5.c
index 4b2bd38..54a5150 100644
--- a/gcc/testsuite/gcc.target/riscv/predef-5.c
+++ b/gcc/testsuite/gcc.target/riscv/predef-5.c
@@ -58,9 +58,6 @@ int main () {
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
-#endif
return 0;
}
diff --git a/gcc/testsuite/gcc.target/riscv/predef-6.c b/gcc/testsuite/gcc.target/riscv/predef-6.c
index 8e5ea36..f61709f 100644
--- a/gcc/testsuite/gcc.target/riscv/predef-6.c
+++ b/gcc/testsuite/gcc.target/riscv/predef-6.c
@@ -58,9 +58,6 @@ int main () {
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medany"
#endif
-#if !defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medpic"
-#endif
return 0;
}
diff --git a/gcc/testsuite/gcc.target/riscv/predef-7.c b/gcc/testsuite/gcc.target/riscv/predef-7.c
index 0bde299..4121755 100644
--- a/gcc/testsuite/gcc.target/riscv/predef-7.c
+++ b/gcc/testsuite/gcc.target/riscv/predef-7.c
@@ -58,9 +58,6 @@ int main () {
#if defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
-#endif
return 0;
}
diff --git a/gcc/testsuite/gcc.target/riscv/predef-8.c b/gcc/testsuite/gcc.target/riscv/predef-8.c
index 18aa591..982056a 100644
--- a/gcc/testsuite/gcc.target/riscv/predef-8.c
+++ b/gcc/testsuite/gcc.target/riscv/predef-8.c
@@ -58,9 +58,6 @@ int main () {
#if !defined(__riscv_cmodel_medany)
#error "__riscv_cmodel_medlow"
#endif
-#if defined(__riscv_cmodel_pic)
-#error "__riscv_cmodel_medlow"
-#endif
return 0;
}