diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2016-03-29 21:37:55 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2016-03-29 19:37:55 +0000 |
commit | f8a1abf8e3dc2ef5cb47a13f14e6a7ec8113a46f (patch) | |
tree | 0db1268677c278b70680ea23df35ab40f292d64f /gcc/cgraphclones.c | |
parent | a362f023e538bc30dd9f2107f71c2435f62b9289 (diff) | |
download | gcc-f8a1abf8e3dc2ef5cb47a13f14e6a7ec8113a46f.zip gcc-f8a1abf8e3dc2ef5cb47a13f14e6a7ec8113a46f.tar.gz gcc-f8a1abf8e3dc2ef5cb47a13f14e6a7ec8113a46f.tar.bz2 |
re PR lto/70283 (bogus vtable mismatch warnings)
PR ipa/70283
* ipa-devirt.c (methods_equal_p): New function.
(compare_virtual_tables): Use it.
* cgraph.h (symbol_table::symbol_suffix_separator): Declare.
* cgraphclones.c (clone_function_name_1): Use
symbol_table::symbol_suffix_separator.
* coverage.c (build_var): Likewise.
* symtab.c (symbol_table::symbol_suffix_separator): New.
From-SVN: r234532
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r-- | gcc/cgraphclones.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index 354655e..07ceb1a 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -512,13 +512,7 @@ clone_function_name_1 (const char *name, const char *suffix) prefix = XALLOCAVEC (char, len + strlen (suffix) + 2); memcpy (prefix, name, len); strcpy (prefix + len + 1, suffix); -#ifndef NO_DOT_IN_LABEL - prefix[len] = '.'; -#elif !defined NO_DOLLAR_IN_LABEL - prefix[len] = '$'; -#else - prefix[len] = '_'; -#endif + prefix[len] = symbol_table::symbol_suffix_separator (); ASM_FORMAT_PRIVATE_NAME (tmp_name, prefix, clone_fn_id_num++); return get_identifier (tmp_name); } |