diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-09-12 01:16:42 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-09-11 23:16:42 +0000 |
commit | 1ee85ee19b06863781374b7c9f97e4f6e931118b (patch) | |
tree | 5ca60267bac44557141301c497a4c5364a3466f9 /gcc/tree.h | |
parent | bc9132dee6c4a8a4348a15ad62772d632351388b (diff) | |
download | gcc-1ee85ee19b06863781374b7c9f97e4f6e931118b.zip gcc-1ee85ee19b06863781374b7c9f97e4f6e931118b.tar.gz gcc-1ee85ee19b06863781374b7c9f97e4f6e931118b.tar.bz2 |
common.opt (flto-odr-type-merging): New flag.
* common.opt (flto-odr-type-merging): New flag.
* ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
(types_same_for_odr): Likewise.
(odr_subtypes_equivalent_p): Likewise.
(add_type_duplicate): Do not walk type variants.
(register_odr_type): New function.
* ipa-utils.h (register_odr_type): Declare.
(odr_type_p): New function.
* langhooks.c (lhd_set_decl_assembler_name): Do not compute
TYPE_DECLs
* doc/invoke.texi (-flto-odr-type-merging): Document.
* tree.c (need_assembler_name_p): Compute ODR names when asked
for it.
* tree.h (DECL_ASSEMBLER_NAME): Update comment.
* lto.c (lto_read_decls): Register ODR types.
From-SVN: r215196
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2344,7 +2344,11 @@ extern void decl_value_expr_insert (tree, tree); /* The name of the object as the assembler will see it (but before any translations made by ASM_OUTPUT_LABELREF). Often this is the same - as DECL_NAME. It is an IDENTIFIER_NODE. */ + as DECL_NAME. It is an IDENTIFIER_NODE. + + ASSEMBLER_NAME of TYPE_DECLS may store global name of type used for + One Definition Rule based type merging at LTO. It is computed only for + LTO compilation and C++. */ #define DECL_ASSEMBLER_NAME(NODE) decl_assembler_name (NODE) /* Return true if NODE is a NODE that can contain a DECL_ASSEMBLER_NAME. |