* [PATCH] Fix ppc bootstrap
@ 2009-10-16 18:48 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2009-10-16 18:48 UTC (permalink / raw)
To: gcc-patches
Hi!
My dwarf2out.c change apparently broke bootstrap on powerpc*-linux.
Fixed thusly, committed as obvious.
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.
--- gcc/dwarf2out.c.jj 2009-10-16 12:42:18.000000000 +0200
+++ gcc/dwarf2out.c 2009-10-16 20:18:51.000000000 +0200
@@ -13393,14 +13393,14 @@ mem_loc_descriptor (rtx rtl, enum machin
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));
Jakub
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-16 18:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-16 18:48 [PATCH] Fix ppc bootstrap Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).