aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-12-14 02:26:47 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2010-12-14 01:26:47 +0000
commit3a9ed12a583c79068fbd60f1314bed397f79d25f (patch)
treee215be0c22fe0dc069251dbbbf8813c08b9d5588 /gcc/cp/decl2.c
parent24b005606a8febb541750b14176cf891c793c6e6 (diff)
downloadgcc-3a9ed12a583c79068fbd60f1314bed397f79d25f.zip
gcc-3a9ed12a583c79068fbd60f1314bed397f79d25f.tar.gz
gcc-3a9ed12a583c79068fbd60f1314bed397f79d25f.tar.bz2
This time really commit PR middle-end/45388
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. From-SVN: r167781
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 468c904..0c64a5d 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),