aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-10-02 12:41:24 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-10-02 10:41:24 +0000
commited0d2da02b3189f014f027997e11e6dba5ad4761 (patch)
tree05d172b704e7c63048f3ef9b5fd618f3b89ee016 /gcc/lto
parent96d7b15ff3ded45c424b1a240a7db64d3ae975e3 (diff)
downloadgcc-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/lto')
-rw-r--r--gcc/lto/ChangeLog6
-rw-r--r--gcc/lto/common.c5
-rw-r--r--gcc/lto/common.h5
3 files changed, 12 insertions, 4 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 6ca8f5b..d3d7ffd 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,9 @@
+2011-10-02 Jan Hubicka <jh@suse.cz>
+
+ PR lto/47247
+ * common.c (lto_resolution_str): Add new resolution.
+ * common.h (lto_resolution_str): Likewise.
+
2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
Andi Kleen <ak@linux.intel.com>
diff --git a/gcc/lto/common.c b/gcc/lto/common.c
index b54ec49..a23fdbb 100644
--- a/gcc/lto/common.c
+++ b/gcc/lto/common.c
@@ -31,7 +31,7 @@ const char *lto_visibility_str[4] __attribute__ ((visibility ("hidden"))) =
"INTERNAL", "HIDDEN"
};
-const char *lto_resolution_str[9] __attribute__ ((visibility ("hidden"))) =
+const char *lto_resolution_str[10] __attribute__ ((visibility ("hidden"))) =
{
"UNKNOWN",
"UNDEF",
@@ -41,6 +41,7 @@ const char *lto_resolution_str[9] __attribute__ ((visibility ("hidden"))) =
"PREEMPTED_IR",
"RESOLVED_IR",
"RESOLVED_EXEC",
- "RESOLVED_DYN"
+ "RESOLVED_DYN",
+ "PREVAILING_DEF_IRONLY_EXP",
};
diff --git a/gcc/lto/common.h b/gcc/lto/common.h
index e821847..6f9a692 100644
--- a/gcc/lto/common.h
+++ b/gcc/lto/common.h
@@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see
-static const char *lto_resolution_str[9] =
+static const char *lto_resolution_str[10] =
{
"UNKNOWN",
"UNDEF",
@@ -30,5 +30,6 @@ static const char *lto_resolution_str[9] =
"PREEMPTED_IR",
"RESOLVED_IR",
"RESOLVED_EXEC",
- "RESOLVED_DYN"
+ "RESOLVED_DYN",
+ "PREVAILING_DEF_IRONLY_EXP",
};