diff options
author | Jan Hubicka <jh@suse.cz> | 2011-10-02 12:41:24 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-10-02 10:41:24 +0000 |
commit | ed0d2da02b3189f014f027997e11e6dba5ad4761 (patch) | |
tree | 05d172b704e7c63048f3ef9b5fd618f3b89ee016 /gcc/varasm.c | |
parent | 96d7b15ff3ded45c424b1a240a7db64d3ae975e3 (diff) | |
download | gcc-ed0d2da02b3189f014f027997e11e6dba5ad4761.zip gcc-ed0d2da02b3189f014f027997e11e6dba5ad4761.tar.gz gcc-ed0d2da02b3189f014f027997e11e6dba5ad4761.tar.bz2 |
re PR lto/47247 (Linker plugin specification makes it difficult to handle COMDATs)
PR lto/47247
* lto-plugin.c (get_symbols_v2): New variable.
(write_resolution): Use V2 API when available.
(onload): Handle LDPT_GET_SYMBOLS_V2.
* lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
when resolution is already availbale from plugin.
(lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
* cgraph.c (ld_plugin_symbol_resolution): Add prevailing_def_ironly_exp.
* lto-cgraph.c (LDPR_NUM_KNOWN): Update.
* ipa.c (varpool_externally_visible_p): IRONLY variables are never
externally visible.
* varasm.c (resolution_to_local_definition_p): Add
LDPR_PREVAILING_DEF_IRONLY_EXP.
(resolution_local_p): Likewise.
* common.c (lto_resolution_str): Add new resolution.
* common.h (lto_resolution_str): Likewise.
From-SVN: r179424
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 9eb7295..9b4dfad 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -6683,6 +6683,7 @@ static bool resolution_to_local_definition_p (enum ld_plugin_symbol_resolution resolution) { return (resolution == LDPR_PREVAILING_DEF + || resolution == LDPR_PREVAILING_DEF_IRONLY_EXP || resolution == LDPR_PREVAILING_DEF_IRONLY); } @@ -6694,6 +6695,7 @@ resolution_local_p (enum ld_plugin_symbol_resolution resolution) { return (resolution == LDPR_PREVAILING_DEF || resolution == LDPR_PREVAILING_DEF_IRONLY + || resolution == LDPR_PREVAILING_DEF_IRONLY_EXP || resolution == LDPR_PREEMPTED_REG || resolution == LDPR_PREEMPTED_IR || resolution == LDPR_RESOLVED_IR |