diff options
author | Richard Guenther <rguenther@suse.de> | 2010-06-04 11:00:09 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-06-04 11:00:09 +0000 |
commit | d4c0c9f6352d49c09f436670b2e9821469a15c1d (patch) | |
tree | bf17c26958a31c8d281981f79bbbeb418d5ca820 /gcc/lto | |
parent | addcce0450edc8fa3b448d25728658a7b8df1052 (diff) | |
download | gcc-d4c0c9f6352d49c09f436670b2e9821469a15c1d.zip gcc-d4c0c9f6352d49c09f436670b2e9821469a15c1d.tar.gz gcc-d4c0c9f6352d49c09f436670b2e9821469a15c1d.tar.bz2 |
re PR lto/41584 (WHOPR doesn't grok empty units)
2010-06-04 Richard Guenther <rguenther@suse.de>
PR lto/41584
* cgraph.h (struct varpool_node): Add lto_file_data field.
* lto-cgraph.c (input_varpool_node): Initialize it.
lto/
* lto.c (lto_1_to_1_map): Use the proper file_data for
varpool nodes.
From-SVN: r160258
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/lto/lto.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index c67cee7..f7f2703 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,9 @@ +2010-06-04 Richard Guenther <rguenther@suse.de> + + PR lto/41584 + * lto.c (lto_1_to_1_map): Use the proper file_data for + varpool nodes. + 2010-05-30 Jan Hubicka <jh@suse.cz> * lto.c (promote_var, promote_fn, lto_wpa_write_files): Dump diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 5031659..fd474b6 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -599,6 +599,7 @@ lto_1_to_1_map (void) { if (vnode->alias || !vnode->needed) continue; + file_data = vnode->lto_file_data; slot = pointer_map_contains (pmap, file_data); if (slot) partition = (ltrans_partition) *slot; |