diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-09-22 08:43:53 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-09-22 08:43:53 +0200 |
commit | 8b659ecb8ea30d4f15c973d114c28f0c46ad96d6 (patch) | |
tree | 8069c1b1735434448e7c9b145c39c66645ccd85f | |
parent | 40742b426995886335ba3d3352b8453f2090e772 (diff) | |
download | gcc-8b659ecb8ea30d4f15c973d114c28f0c46ad96d6.zip gcc-8b659ecb8ea30d4f15c973d114c28f0c46ad96d6.tar.gz gcc-8b659ecb8ea30d4f15c973d114c28f0c46ad96d6.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc1a886..fe3b12c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index e1f16fe..1748cc4 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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); |