summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Dimitrov <dimitar@dinux.eu>2019-06-12 19:44:21 +0000
committerDimitar Dimitrov <dimitar@gcc.gnu.org>2019-06-12 19:44:21 +0000
commit6dfa4ad4399b2845a796eec3ab52df60d5e99e66 (patch)
tree18b764a0aef7fb1d90b032d733b131603ab96594
parentb48e2217672b79a81448ff675ad9dea8a325bfe1 (diff)
downloadgcc-6dfa4ad4399b2845a796eec3ab52df60d5e99e66.tar.gz
testsuite: Remove PRU from test cases requiring hosted environment
gcc/testsuite/ChangeLog: 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu> * gcc.c-torture/execute/20101011-1.c: Define DO_TEST to 0 for PRU. * gcc.dg/20020312-2.c: No PIC register for PRU. From-SVN: r272208
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20101011-1.c3
-rw-r--r--gcc/testsuite/gcc.dg/20020312-2.c2
3 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b8970c31ff5..5ec91370301 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
+ * gcc.c-torture/execute/20101011-1.c: Define DO_TEST to 0 for PRU.
+ * gcc.dg/20020312-2.c: No PIC register for PRU.
+
+2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
+
* lib/gcc-dg.exp: Filter unsupported features in PRU's TI ABI mode.
* lib/target-utils.exp: Ditto.
* lib/target-supports.exp (check_effective_target_function_pointers,
diff --git a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c
index d2beeb52a0e..772648dd684 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c
@@ -103,6 +103,9 @@ __aeabi_idiv0 (int return_value)
#elif defined (__or1k__)
/* On OpenRISC division by zero does not trap. */
# define DO_TEST 0
+#elif defined (__pru__)
+/* There isn't even a signal function. */
+# define DO_TEST 0
#else
# define DO_TEST 1
#endif
diff --git a/gcc/testsuite/gcc.dg/20020312-2.c b/gcc/testsuite/gcc.dg/20020312-2.c
index c584d35908e..dae3599563a 100644
--- a/gcc/testsuite/gcc.dg/20020312-2.c
+++ b/gcc/testsuite/gcc.dg/20020312-2.c
@@ -121,6 +121,8 @@ extern void abort (void);
/* No pic register. */
#elif defined (__AMDGCN__)
/* No pic register. */
+#elif defined(__PRU__)
+/* No pic register. */
#else
# error "Modify the test for your target."
#endif