public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [LTO] Patch to fix ICE in size_binop()
@ 2007-11-07 18:34 Doug Kwan (關振德)
  2007-11-09 23:56 ` Diego Novillo
  2007-11-10 22:26 ` problems with committed patch Kenneth Zadeck
  0 siblings, 2 replies; 3+ messages in thread
From: Doug Kwan (關振德) @ 2007-11-07 18:34 UTC (permalink / raw)
  To: gcc-patches

Hi

     This patch fixes an ICE found in size_binop() when running the C
testsuite. Could someone review this?

-Doug
-------------------------------------------------------
2007-11-07  Doug Kwan  <dougkwan@google.com>

        * lto.c (input_expr_operand): Change type of operand 2 of
        BIT_FIELD_REF expression to be bitsizetype instead of sizetype.

diff -dupr /disk2/dougkwan/lto-2/gcc/gcc/lto/lto-read.c lto/lto-read.c
--- /disk2/dougkwan/lto-2/gcc/gcc/lto/lto-read.c        2007-11-07
10:20:23.000000000 -0800
+++ lto/lto-read.c      2007-11-06 16:16:30.000000000 -0800
@@ -867,7 +867,7 @@ input_expr_operand (struct input_block *
        if (tag == LTO_bit_field_ref1)
          {
            op1 = build_int_cst_wide (sizetype, input_uleb128 (ib), 0);
-           op2 = build_int_cst_wide (sizetype, input_uleb128 (ib), 0);
+           op2 = build_int_cst_wide (bitsizetype, input_uleb128 (ib), 0);
            op0 = input_expr_operand (ib, data_in, fn,
                                      input_record_start (ib));
          }

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-10 16:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-07 18:34 [LTO] Patch to fix ICE in size_binop() Doug Kwan (關振德)
2007-11-09 23:56 ` Diego Novillo
2007-11-10 22:26 ` problems with committed patch Kenneth Zadeck

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).