Commit 8aa19d95 by Jakub Jelinek

[multiple changes]

2007-06-28  Jakub Jelinek  <jakub@redhat.com>

	* config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
	decl is non-external for AIX ABI.

2007-06-28  David Edelsohn  <edelsohn@gnu.org>

	* config/rs6000/predicates.md (current_file_function_operand):
	Ensure the symbol is non-external for AIX ABI.

From-SVN: r126076
parent f803eba8
2007-06-28 Jakub Jelinek <jakub@redhat.com>
* config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
decl is non-external for AIX ABI.
2007-06-28 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/predicates.md (current_file_function_operand):
Ensure the symbol is non-external for AIX ABI.
2007-06-28 Nick Clifton <nickc@redhat.com> 2007-06-28 Nick Clifton <nickc@redhat.com>
* common.opt (fipa-matrix-reorg): Add Optimization attribute. * common.opt (fipa-matrix-reorg): Add Optimization attribute.
......
...@@ -696,7 +696,9 @@ ...@@ -696,7 +696,9 @@
(define_predicate "current_file_function_operand" (define_predicate "current_file_function_operand"
(and (match_code "symbol_ref") (and (match_code "symbol_ref")
(match_test "(DEFAULT_ABI != ABI_AIX || SYMBOL_REF_FUNCTION_P (op)) (match_test "(DEFAULT_ABI != ABI_AIX || SYMBOL_REF_FUNCTION_P (op))
&& (SYMBOL_REF_LOCAL_P (op) && ((SYMBOL_REF_LOCAL_P (op)
&& (DEFAULT_ABI != ABI_AIX
|| !SYMBOL_REF_EXTERNAL_P (op)))
|| (op == XEXP (DECL_RTL (current_function_decl), || (op == XEXP (DECL_RTL (current_function_decl),
0)))"))) 0)))")))
......
...@@ -13938,7 +13938,8 @@ rs6000_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED) ...@@ -13938,7 +13938,8 @@ rs6000_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED)
} }
} }
if (DEFAULT_ABI == ABI_DARWIN if (DEFAULT_ABI == ABI_DARWIN
|| (*targetm.binds_local_p) (decl)) || ((*targetm.binds_local_p) (decl)
&& (DEFAULT_ABI != ABI_AIX || !DECL_EXTERNAL (decl))))
{ {
tree attr_list = TYPE_ATTRIBUTES (TREE_TYPE (decl)); tree attr_list = TYPE_ATTRIBUTES (TREE_TYPE (decl));
......
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