Commit 0ed431d4 by Bryce McKinlay Committed by Bryce McKinlay

builtins.c (check_for_builtin): If a builtin could result in a direct call being generated...

2006-07-12  Bryce McKinlay  <mckinlay@redhat.com>

	* builtins.c (check_for_builtin): If a builtin could result in a
	direct call being generated, don't use it if flag_indirect_dispatch
	is set.

From-SVN: r115414
parent 18c3f977
2006-07-12 Bryce McKinlay <mckinlay@redhat.com>
* builtins.c (check_for_builtin): If a builtin could result in a
direct call being generated, don't use it if flag_indirect_dispatch
is set.
2006-07-12 Bryce McKinlay <mckinlay@redhat.com>
* gcj.texi (Invocation): Corrections for Invocation API example.
2006-07-04 Andrew Haley <aph@redhat.com> 2006-07-04 Andrew Haley <aph@redhat.com>
* class.c (build_fieldref_cache_entry): Set DECL_IGNORED_P on the * class.c (build_fieldref_cache_entry): Set DECL_IGNORED_P on the
......
...@@ -293,6 +293,11 @@ check_for_builtin (tree method, tree call) ...@@ -293,6 +293,11 @@ check_for_builtin (tree method, tree call)
method_arguments); method_arguments);
return result == NULL_TREE ? call : result; return result == NULL_TREE ? call : result;
} }
/* Builtin functions emit a direct call which is incompatible
with the BC-ABI. */
if (flag_indirect_dispatch)
return call;
fn = built_in_decls[java_builtins[i].builtin_code]; fn = built_in_decls[java_builtins[i].builtin_code];
if (fn == NULL_TREE) if (fn == NULL_TREE)
return call; return call;
......
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