This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[LTO] Patch to fix ICE in size_binop()
- From: "=?big5?b?RG91ZyBLd2FuICjD9q62vHcp?=" <dougkwan at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 7 Nov 2007 10:34:04 -0800
- Subject: [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));
}