aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphbuild.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2012-05-19 11:49:47 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2012-05-19 09:49:47 +0000
commitc44c2088f77877c43b110c508bbfec492ba487a7 (patch)
treebb72d53e69f1fe6cb1c4cad585a0b19bdc16980d /gcc/cgraphbuild.c
parentc80c1ce9510e2840d036d6a5e9b035a659701c41 (diff)
downloadgcc-c44c2088f77877c43b110c508bbfec492ba487a7.zip
gcc-c44c2088f77877c43b110c508bbfec492ba487a7.tar.gz
gcc-c44c2088f77877c43b110c508bbfec492ba487a7.tar.bz2
cgraphbuild.c (record_reference): Update.
* cgraphbuild.c (record_reference): Update. * lto-cgraph.c (lto_output_varpool_node): External vars are not in other partition even if they are not output in current partition. * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL argument; fix. (canonicalize_constructor_val): Take FROM_DECL argument. (fold_ctor_reference, fold_string_cst_ctor_reference, fold_array_ctor_reference, fold_nonarray_ctor_reference, fold_ctor_reference): Likewise. (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update. * gimple.h (gimple_fold_builtin): Likewise. From-SVN: r187678
Diffstat (limited to 'gcc/cgraphbuild.c')
-rw-r--r--gcc/cgraphbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraphbuild.c b/gcc/cgraphbuild.c
index ea53513..ce8f2ee 100644
--- a/gcc/cgraphbuild.c
+++ b/gcc/cgraphbuild.c
@@ -54,7 +54,7 @@ record_reference (tree *tp, int *walk_subtrees, void *data)
tree decl;
struct record_reference_ctx *ctx = (struct record_reference_ctx *)data;
- t = canonicalize_constructor_val (t);
+ t = canonicalize_constructor_val (t, NULL);
if (!t)
t = *tp;
else if (t != *tp)