]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/58619 (ICE building in gen_combined_adhoc_loc)
authorDehao Chen <dehao@google.com>
Tue, 8 Oct 2013 08:34:28 +0000 (08:34 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Tue, 8 Oct 2013 08:34:28 +0000 (08:34 +0000)
PR tree-optimization/58619

2013-10-08  Dehao Chen  <dehao@google.com>

* tree-inline.c (copy_phis_for_bb): Combine location data
only if non-null.

From-SVN: r203269

gcc/ChangeLog
gcc/tree-inline.c

index 500fcbb0e5d64057e2fd8a146d07287dd942ec36..80343b91d8baac4c75dc0a99c2e730714022d245 100644 (file)
@@ -1,3 +1,9 @@
+2013-10-08  Dehao Chen  <dehao@google.com>
+
+       PR tree-optimization/58619
+       * tree-inline.c (copy_phis_for_bb): Combine location data
+       only if non-null.
+
 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
 
        PR target/58423
index ebb4b9188133c73a46ceb5bd8eb33f24da50eb98..ef8eba473a2244efb32864fea504fd0e9dc9de7a 100644 (file)
@@ -2090,7 +2090,10 @@ copy_phis_for_bb (basic_block bb, copy_body_data *id)
                  n = (tree *) pointer_map_contains (id->decl_map,
                        LOCATION_BLOCK (locus));
                  gcc_assert (n);
-                 locus = COMBINE_LOCATION_DATA (line_table, locus, *n);
+                 if (*n)
+                   locus = COMBINE_LOCATION_DATA (line_table, locus, *n);
+                 else
+                   locus = LOCATION_LOCUS (locus);
                }
              else
                locus = LOCATION_LOCUS (locus);