Commit ecd883d4 by H.J. Lu Committed by H.J. Lu

re PR testsuite/42086 (FAIL: gcc.target/ia64/fptr-1.c execution test)

2009-11-23  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/42086
	* gcc.target/ia64/fptr-1.c: Make it a compile test.

From-SVN: r154478
parent da60b46b
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> 2009-11-23 Janis Johnson <janis187@us.ibm.com>
* lib/lto.exp (lto_option_list): Rename from option_list. * lib/lto.exp (lto_option_list): Rename from option_list.
......
/* { dg-do run { target ia64-*-linux* } } */ /* { dg-do compile { target ia64-*-linux* } } */
/* { dg-options "-O2" } */ /* { 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_; /* Test function descriptor access. */
extern void abort(void);
struct ia64_fdesc struct ia64_fdesc
{ {
...@@ -17,11 +17,7 @@ os_boot_rendez (void) ...@@ -17,11 +17,7 @@ os_boot_rendez (void)
{ {
} }
static int extern int check (unsigned long);
check (unsigned long gp)
{
return gp != (unsigned long) &_GLOBAL_OFFSET_TABLE_;
}
int int
main (int argc, char **argv) main (int argc, char **argv)
...@@ -31,7 +27,5 @@ main (int argc, char **argv) ...@@ -31,7 +27,5 @@ main (int argc, char **argv)
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
res += check (((struct ia64_fdesc *) os_boot_rendez)->gp); res += check (((struct ia64_fdesc *) os_boot_rendez)->gp);
if (res)
abort ();
return res; return res;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment