summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authoraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-20 20:11:41 +0000
committeraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-20 20:11:41 +0000
commit46a7e21638fc236886e619c5c889f552384073c3 (patch)
treea8c54e7d5be9f8fb754934d667e66e6346bf3f62 /gcc/c-decl.c
parent0cf506c886ca609627c8a38b1b44f4309a68f552 (diff)
downloadgcc-46a7e21638fc236886e619c5c889f552384073c3.tar.gz
PR c++/19044
* c-common.c (set_builtin_user_assembler_name): New. * c-common.h (set_builtin_user_assembler_name): Declare. * c-decl.c (finish_decl): Use set_builtin_user_assembler_name * decl.c (make_rtl_for_nonlocal_decl): Use set_builtin_user_assembler_name * g++.dg/ext/builtin6.C: New git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92428 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index e6b4cba7912..97420d16cc2 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3233,14 +3233,7 @@ finish_decl (tree decl, tree init, tree asmspec_tree)
if (TREE_CODE (decl) == FUNCTION_DECL && asmspec)
{
if (DECL_BUILT_IN_CLASS (decl) == BUILT_IN_NORMAL)
- {
- tree builtin = built_in_decls [DECL_FUNCTION_CODE (decl)];
- set_user_assembler_name (builtin, asmspec);
- if (DECL_FUNCTION_CODE (decl) == BUILT_IN_MEMCPY)
- init_block_move_fn (asmspec);
- else if (DECL_FUNCTION_CODE (decl) == BUILT_IN_MEMSET)
- init_block_clear_fn (asmspec);
- }
+ set_builtin_user_assembler_name (decl, asmspec);
set_user_assembler_name (decl, asmspec);
}