summaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-14 01:26:47 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-14 01:26:47 +0000
commit6251089358901193c509f0c44b2f47165f788104 (patch)
treee215be0c22fe0dc069251dbbbf8813c08b9d5588 /gcc/cp/decl2.c
parent3a0201c8aa1e081d359ec547e33a13e2b32e3518 (diff)
downloadgcc-6251089358901193c509f0c44b2f47165f788104.tar.gz
This time really commit
PR middle-end/45388 * decl2.c (start_objects): Do not generate collect2 recognicable name for static ctor. * ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter. (cgraph_build_static_cdtor): ... here. (build_cdtor): Use cgraph_build_static_cdtor_1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167781 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 468c904710c..0c64a5d4f0c 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -2691,7 +2691,7 @@ start_objects (int method_type, int initp)
{
tree body;
tree fndecl;
- char type[10];
+ char type[14];
/* Make ctor or dtor function. METHOD_TYPE may be 'I' or 'D'. */
@@ -2705,10 +2705,10 @@ start_objects (int method_type, int initp)
joiner = '_';
#endif
- sprintf (type, "%c%c%.5u", method_type, joiner, initp);
+ sprintf (type, "sub_%c%c%.5u", method_type, joiner, initp);
}
else
- sprintf (type, "%c", method_type);
+ sprintf (type, "sub_%c", method_type);
fndecl = build_lang_decl (FUNCTION_DECL,
get_file_function_name (type),