aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-10-16 20:21:09 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2009-10-16 20:21:09 +0200
commit3b24c708a1d4da6b37ce1bde62d44a056030b635 (patch)
tree6d74bae216ef57bd250f6ec3dac68a8431633038 /gcc
parent2f5ac7f210afaf832796fecf3ec095646cb1f0c9 (diff)
downloadgcc-3b24c708a1d4da6b37ce1bde62d44a056030b635.zip
gcc-3b24c708a1d4da6b37ce1bde62d44a056030b635.tar.gz
gcc-3b24c708a1d4da6b37ce1bde62d44a056030b635.tar.bz2
dwarf2out.c (mem_loc_descriptor): Cast DWARF2_ADDR_SIZE to int to avoid signed vs.
* dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings. From-SVN: r152915
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 79cd10f..b85026d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-16 Jakub Jelinek <jakub@redhat.com>
+
+ * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
+ DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
+
2009-10-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/41728
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index b67bab3..00adf06 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -13393,14 +13393,14 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode,
if (BITS_BIG_ENDIAN)
shift = GET_MODE_BITSIZE (GET_MODE (XEXP (rtl, 0)))
- shift - size;
- if (shift + size != DWARF2_ADDR_SIZE)
+ if (shift + size != (int) DWARF2_ADDR_SIZE)
{
add_loc_descr (&mem_loc_result,
int_loc_descriptor (DWARF2_ADDR_SIZE
- shift - size));
add_loc_descr (&mem_loc_result, new_loc_descr (DW_OP_shl, 0, 0));
}
- if (size != DWARF2_ADDR_SIZE)
+ if (size != (int) DWARF2_ADDR_SIZE)
{
add_loc_descr (&mem_loc_result,
int_loc_descriptor (DWARF2_ADDR_SIZE - size));