Commit 9f95c526 by Jakub Jelinek Committed by Jakub Jelinek

re PR bootstrap/90819 (-Walloc-size-larger-than error in trans-mem.c)

	PR bootstrap/90819
	* trans-mem.c (tm_memopt_compute_available): Add assertion
	that blocks is not empty.  Formatting fix.

From-SVN: r272145
parent 3f2cf036
2019-06-11 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/90819
* trans-mem.c (tm_memopt_compute_available): Add assertion
that blocks is not empty. Formatting fix.
2019-06-11 Martin Liska <mliska@suse.cz> 2019-06-11 Martin Liska <mliska@suse.cz>
PR c++/87847 PR c++/87847
......
...@@ -3708,9 +3708,9 @@ tm_memopt_compute_available (struct tm_region *region, ...@@ -3708,9 +3708,9 @@ tm_memopt_compute_available (struct tm_region *region,
/* Allocate a worklist array/queue. Entries are only added to the /* Allocate a worklist array/queue. Entries are only added to the
list if they were not already on the list. So the size is list if they were not already on the list. So the size is
bounded by the number of basic blocks in the region. */ bounded by the number of basic blocks in the region. */
gcc_assert (!blocks.is_empty ());
qlen = blocks.length () - 1; qlen = blocks.length () - 1;
qin = qout = worklist = qin = qout = worklist = XNEWVEC (basic_block, qlen);
XNEWVEC (basic_block, qlen);
/* Put every block in the region on the worklist. */ /* Put every block in the region on the worklist. */
for (i = 0; blocks.iterate (i, &bb); ++i) for (i = 0; blocks.iterate (i, &bb); ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment