summaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-26 16:39:11 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-26 16:39:11 +0000
commitea259bbe1b2350126c466be7efb320d851aed253 (patch)
treec3f613b6ee85a62bf5f20361a7f272d9e9f410fc /gcc/calls.c
parenta723d770e5eb185121f185cde2c3967cd7f522ad (diff)
downloadgcc-ea259bbe1b2350126c466be7efb320d851aed253.tar.gz
* toplev.c (check_global_declaration_1): Do not call assemble_external.
* expr.c (emit_block_move_libcall_fn): Likewise. (clear_storage_libcall_fn): Likewise. (expand_expr_addr_expr_1): Likewise. (expand_expr_real_1): Likewise. * calls.c (rtx_for_function_call): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185813 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index 19b2bfad81a..8c1e0797e44 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -1642,13 +1642,8 @@ rtx_for_function_call (tree fndecl, tree addr)
/* Get the function to call, in the form of RTL. */
if (fndecl)
{
- /* If this is the first use of the function, see if we need to
- make an external definition for it. */
if (!TREE_USED (fndecl) && fndecl != current_function_decl)
- {
- assemble_external (fndecl);
- TREE_USED (fndecl) = 1;
- }
+ TREE_USED (fndecl) = 1;
/* Get a SYMBOL_REF rtx for the function address. */
funexp = XEXP (DECL_RTL (fndecl), 0);