Skip to content

Commit fbc68f2

Browse files
danielcdhDehao Chen
authored andcommitted
cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly.
2012-11-27 Dehao Chen <[email protected]> * cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly. (cfg_layout_merge_blocks): Likewise. From-SVN: r193852
1 parent bc9ec75 commit fbc68f2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

gcc/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2012-11-27 Dehao Chen <[email protected]>
2+
3+
* cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly.
4+
(cfg_layout_merge_blocks): Likewise.
5+
16
2012-11-27 Jakub Jelinek <[email protected]>
27

38
* passes.c (init_optimization_passes): Add pass_asan and pass_tsan

gcc/cfgrtl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,8 @@ rtl_merge_blocks (basic_block a, basic_block b)
890890
df_bb_delete (b->index);
891891

892892
/* If B was a forwarder block, propagate the locus on the edge. */
893-
if (forwarder_p && !EDGE_SUCC (b, 0)->goto_locus)
893+
if (forwarder_p
894+
&& LOCATION_LOCUS (EDGE_SUCC (b, 0)->goto_locus) == UNKNOWN_LOCATION)
894895
EDGE_SUCC (b, 0)->goto_locus = EDGE_SUCC (a, 0)->goto_locus;
895896

896897
if (dump_file)
@@ -4149,7 +4150,7 @@ cfg_layout_merge_blocks (basic_block a, basic_block b)
41494150

41504151
/* If B was a forwarder block, propagate the locus on the edge. */
41514152
if (forwarder_p
4152-
&& LOCATION_LOCUS (EDGE_SUCC (b, 0)->goto_locus) != UNKNOWN_LOCATION)
4153+
&& LOCATION_LOCUS (EDGE_SUCC (b, 0)->goto_locus) == UNKNOWN_LOCATION)
41534154
EDGE_SUCC (b, 0)->goto_locus = EDGE_SUCC (a, 0)->goto_locus;
41544155

41554156
if (dump_file)

0 commit comments

Comments
 (0)