diff options
author | Martin Liska <mliska@suse.cz> | 2014-06-27 11:24:45 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2014-06-27 09:24:45 +0000 |
commit | 807b7d6209c7bd54b4dfc9abdc17f451e71aa648 (patch) | |
tree | f1d34832a1df36dc5fc05332f91ff4a37dce3c77 /gcc/ipa.c | |
parent | fcbbf14a65cb7cb5814087870a0ecb47c227592c (diff) | |
download | gcc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |