dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned comparison warning on rs6000.

* dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
	comparison warning on rs6000.

From-SVN: r151967
This commit is contained in:
Jakub Jelinek 2009-09-22 08:43:53 +02:00 committed by Jakub Jelinek
parent 40742b4269
commit 8b659ecb8e
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2009-09-22 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
comparison warning on rs6000.
PR middle-end/41429
* tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
GIMPLE_EH_MUST_NOT_THROW cleanup.

View File

@ -10926,7 +10926,7 @@ address_of_int_loc_descriptor (int size, HOST_WIDE_INT i)
+ 1 (mode size)
and for DW_OP_implicit_value:
1 (DW_OP_implicit_value) + 1 (length) + mode_size. */
if (DWARF2_ADDR_SIZE >= size
if ((int) DWARF2_ADDR_SIZE >= size
&& litsize + 1 + 1 + 1 < 1 + 1 + size)
{
loc_result = int_loc_descriptor (i);