This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH v4 06/10] testsuite: Remove PRU from test cases requiring hosted environment
- From: Dimitar Dimitrov <dimitar at dinux dot eu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Dimitar Dimitrov <dimitar at dinux dot eu>
- Date: Thu, 6 Sep 2018 14:12:13 +0300
- Subject: [PATCH v4 06/10] testsuite: Remove PRU from test cases requiring hosted environment
- References: <20180906111217.24365-1-dimitar@dinux.eu>
gcc/testsuite/ChangeLog:
2018-08-29 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.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
---
gcc/testsuite/gcc.c-torture/execute/20101011-1.c | 3 +++
gcc/testsuite/gcc.dg/20020312-2.c | 2 ++
2 files changed, 5 insertions(+)
diff --git a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c
index f95d900deaf..aa72b35fa16 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c
@@ -97,6 +97,9 @@ __aeabi_idiv0 (int return_value)
/* This presently doesn't raise SIGFPE even on csky-linux-gnu, much
less bare metal. See the implementation of __divsi3 in libgcc. */
# 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 f8be3ce2964..365ae6e847c 100644
--- a/gcc/testsuite/gcc.dg/20020312-2.c
+++ b/gcc/testsuite/gcc.dg/20020312-2.c
@@ -116,6 +116,8 @@ extern void abort (void);
# if defined (__CK807__) || defined (__CK810__)
# define PIC_REG "r28"
# endif
+#elif defined(__PRU__)
+/* No pic register. */
#else
# error "Modify the test for your target."
#endif
--
2.11.0