re PR middle-end/52463 (libitm.c/memcpy-1.c FAILs)
authorAldy Hernandez <aldyh@redhat.com>
Mon, 5 Mar 2012 18:38:47 +0000 (18:38 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Mon, 5 Mar 2012 18:38:47 +0000 (18:38 +0000)
        PR middle-end/52463
        * trans-mem.c (tm_region_init): Use last_basic_block.

From-SVN: r184949

gcc/ChangeLog
gcc/trans-mem.c

index 911737a00f2c377e9a026c75c52c43258daa2de9..5fcb5a71d81557299efaac6bd41b0028421a9574 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
+
+       PR middle-end/52463
+       * trans-mem.c (tm_region_init): Use last_basic_block.
+
 2012-03-05  Richard Henderson  <rth@redhat.com>
 
        PR target/52481
index 56ef72ea5f34081fd604d525f902f533caf0639b..97893f7a154f41c1926bd98c0b5deccf7cb6a707 100644 (file)
@@ -1868,7 +1868,7 @@ tm_region_init (struct tm_region *region)
      using bb->aux.  */
   region_worklist =
     (struct tm_region **) xcalloc (sizeof (struct tm_region *),
-                                 n_basic_blocks + NUM_FIXED_BLOCKS + 2);
+                                 last_basic_block + NUM_FIXED_BLOCKS);
 
   VEC_safe_push (basic_block, heap, queue, bb);
   region_worklist[bb->index] = region;