Commit 73096ba9 by John David Anglin Committed by John David Anglin

re PR target/17643 (ICE in propagate_one_insn, at flow.c:1582)

	PR target/17643
	* pa.c (pa_function_ok_for_sibcall): Sibcalls are not ok when
	generating code for the portable runtime.

From-SVN: r92629
parent e37ba56b
2004-12-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/17643
* pa.c (pa_function_ok_for_sibcall): Sibcalls are not ok when
generating code for the portable runtime.
2004-12-25 Richard Henderson <rth@redhat.com> 2004-12-25 Richard Henderson <rth@redhat.com>
* expr.c (clear_storage): Validate CONST0_RTX extant. Special case * expr.c (clear_storage): Validate CONST0_RTX extant. Special case
......
...@@ -8091,6 +8091,9 @@ pa_asm_output_mi_thunk (FILE *file, tree thunk_fndecl, HOST_WIDE_INT delta, ...@@ -8091,6 +8091,9 @@ pa_asm_output_mi_thunk (FILE *file, tree thunk_fndecl, HOST_WIDE_INT delta,
static bool static bool
pa_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED) pa_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED)
{ {
if (TARGET_PORTABLE_RUNTIME)
return false;
/* Sibcalls are ok for TARGET_ELF32 as along as the linker is used in /* Sibcalls are ok for TARGET_ELF32 as along as the linker is used in
single subspace mode and the call is not indirect. As far as I know, single subspace mode and the call is not indirect. As far as I know,
there is no operating system support for the multiple subspace mode. there is no operating system support for the multiple subspace mode.
...@@ -8108,9 +8111,8 @@ pa_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED) ...@@ -8108,9 +8111,8 @@ pa_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED)
if (TARGET_64BIT) if (TARGET_64BIT)
return false; return false;
return (decl /* Sibcalls are only ok within a translation unit. */
&& !TARGET_PORTABLE_RUNTIME return (decl && !TREE_PUBLIC (decl));
&& !TREE_PUBLIC (decl));
} }
/* Returns 1 if the 6 operands specified in OPERANDS are suitable for /* Returns 1 if the 6 operands specified in OPERANDS are suitable for
......
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