2009-11-23 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Nov 2009 22:55:54 +0000 (22:55 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Nov 2009 22:55:54 +0000 (22:55 +0000)
PR testsuite/42086
* gcc.target/ia64/fptr-1.c: Make it a compile test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154478 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/ia64/fptr-1.c

index b88b856..03171c9 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR testsuite/42086
+       * gcc.target/ia64/fptr-1.c: Make it a compile test.
+
 2009-11-23  Janis Johnson  <janis187@us.ibm.com>
 
        * lib/lto.exp (lto_option_list): Rename from option_list.
index 8dc2efa..b3d4536 100644 (file)
@@ -1,10 +1,10 @@
-/* { dg-do run { target ia64-*-linux* } } */
+/* { dg-do compile { target ia64-*-linux* } } */
 /* { dg-options "-O2" } */
 
-/* Test function descriptor access.  */
+/* { dg-final { scan-assembler-not "@ltoffx\\(os_boot_rendez#\\)" } } */
+/* { dg-final { scan-assembler "@ltoff\\(@fptr\\(os_boot_rendez#\\)\\)" } } */
 
-extern unsigned long *_GLOBAL_OFFSET_TABLE_;
-extern void abort(void);
+/* Test function descriptor access.  */
 
 struct ia64_fdesc
 {
@@ -17,11 +17,7 @@ os_boot_rendez (void)
 {
 }
 
-static int
-check (unsigned long gp)
-{
-  return gp != (unsigned long) &_GLOBAL_OFFSET_TABLE_;
-}
+extern int check (unsigned long);
 
 int
 main (int argc, char **argv)
@@ -31,7 +27,5 @@ main (int argc, char **argv)
 
   for (i = 0; i < 1; i++)
     res += check (((struct ia64_fdesc *) os_boot_rendez)->gp);
-  if (res)
-    abort ();
   return res;
 }