diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2009-08-04 09:29:32 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2009-08-04 09:29:32 +0000 |
commit | 19ca2f55069ffb018bc3108f8e6215a87233d325 (patch) | |
tree | f41eeaee2afabd777e9415561150469366fc4789 | |
parent | 7f36aba76c6044ea0ed67f101c92991f326049d9 (diff) |
* tree-cfg.c (remove_bb): Let the last i.e. first loc prevail.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/var-tracking-assignments-4_4-branch@150404 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog.vta | 4 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog.vta b/gcc/ChangeLog.vta index f5a545f8202..acf9de9c97a 100644 --- a/gcc/ChangeLog.vta +++ b/gcc/ChangeLog.vta @@ -1,3 +1,7 @@ +2009-08-04 Alexandre Oliva <aoliva@redhat.com> + + * tree-cfg.c (remove_bb): Let the last i.e. first loc prevail. + 2009-08-04 Jakub Jelinek <jakub@redhat.com> * dwarf2out.c (mem_loc_descriptor): Handle ZERO_EXTRACT and diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 0bdd0370476..e126e55b417 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -2181,8 +2181,7 @@ remove_bb (basic_block bb) since this way we lose warnings for gotos in the original program that are indeed unreachable. */ if (gimple_code (stmt) != GIMPLE_GOTO - && gimple_has_location (stmt) - && !loc) + && gimple_has_location (stmt)) loc = gimple_location (stmt); } } |