This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: Add support for FRV to 20020312-2.c test
- From: Nick Clifton <nickc at redhat dot com>
- To: aldyh at redhat dot com, aoliva at redhat dot com, janis187 at us dot ibm dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 21 Apr 2007 08:57:57 +0100
- Subject: RFA: Add support for FRV to 20020312-2.c test
Hi Guys,
Please may I apply the following patch to the gcc.dg/20020312-2.c
test ? It adds definitions of the PIC registers used by the FRV
port so that the test can run without encountering a #error.
Tested by running the gcc testsuite with an frv-linux-gnu
toolchain.
Cheers
Nick
gcc/testsuite
2007-04-21 Nick Clifton <nickc@redhat.com>
* gcc.dg/20020312-2.c: Add support for the FRV.
Index: gcc/testsuite/gcc.dg/20020312-2.c
===================================================================
--- gcc/testsuite/gcc.dg/20020312-2.c (revision 124015)
+++ gcc/testsuite/gcc.dg/20020312-2.c (working copy)
@@ -74,6 +74,12 @@ extern void abort (void);
/* No pic register. */
#elif defined(__SPU__)
# define PIC_REG "126"
+#elif defined __frv__
+# ifdef __FRV_FDPIC__
+# define PIC_REG "gr15"
+# else
+# define PIC_REG "gr17"
+#endif
#else
# error "Modify the test for your target."
#endif