This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]