This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[LTO] Patch to fix ICE in size_binop()


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));
          }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]