Commit 99a5e049 by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/49262 (3-yr-old infinite loop in dwarf2out.c)

	PR debug/49262
	* dwarf2out.c (native_encode_initializer): Decrement count in each
	iteration.

From-SVN: r174715
parent 04902d4c
2011-06-06 Jakub Jelinek <jakub@redhat.com> 2011-06-06 Jakub Jelinek <jakub@redhat.com>
PR debug/49262
* dwarf2out.c (native_encode_initializer): Decrement count in each
iteration.
PR debug/49294 PR debug/49294
* dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
non-MODE_INT modes. non-MODE_INT modes.
......
...@@ -18065,7 +18065,7 @@ native_encode_initializer (tree init, unsigned char *array, int size) ...@@ -18065,7 +18065,7 @@ native_encode_initializer (tree init, unsigned char *array, int size)
{ {
int count = tree_low_cst (TREE_OPERAND (index, 1), 0) int count = tree_low_cst (TREE_OPERAND (index, 1), 0)
- tree_low_cst (TREE_OPERAND (index, 0), 0); - tree_low_cst (TREE_OPERAND (index, 0), 0);
while (count > 0) while (count-- > 0)
{ {
if (val) if (val)
memcpy (array + curpos, array + pos, fieldsize); memcpy (array + curpos, array + pos, fieldsize);
......
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