aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2014-06-27 11:24:45 +0200
committerMartin Liska <marxin@gcc.gnu.org>2014-06-27 09:24:45 +0000
commit807b7d6209c7bd54b4dfc9abdc17f451e71aa648 (patch)
treef1d34832a1df36dc5fc05332f91ff4a37dce3c77 /gcc/ipa.c
parentfcbbf14a65cb7cb5814087870a0ecb47c227592c (diff)
downloadgcc-807b7d6209c7bd54b4dfc9abdc17f451e71aa648.zip
gcc-807b7d6209c7bd54b4dfc9abdc17f451e71aa648.tar.gz
gcc-807b7d6209c7bd54b4dfc9abdc17f451e71aa648.tar.bz2
Fix for devirtualization dump functions
* gimple.h (gimple_location_safe): New function introduced. * cgraphunit.c (walk_polymorphic_call_targets): Usage of gimple_location_safe replaces gimple_location. (gimple_fold_call): Likewise. * ipa-devirt.c (ipa_devirt): Likewise. * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise. * ipa.c (walk_polymorphic_call_targets): Likewise. * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise. From-SVN: r212067
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index fce2e36..7681564 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -198,7 +198,7 @@ walk_polymorphic_call_targets (pointer_set_t *reachable_call_targets,
if (dump_enabled_p ())
{
- location_t locus = gimple_location (edge->call_stmt);
+ location_t locus = gimple_location_safe (edge->call_stmt);
dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, locus,
"devirtualizing call in %s/%i to %s/%i\n",
edge->caller->name (), edge->caller->order,