[PATCH] Fix combine ICE on PPC
Geoff Keating
geoffk@geoffk.org
Mon Jan 21 14:04:00 GMT 2002
Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:
> Hi,
>
> the attached testcase reduced out of KDE3 ICE's in current mainline on
> powerpc-linux-gnu:
>
> [fsirl@enzo:~/bug-combine]$ gcc -B /cvsx/rawhide/BUILD/obj-gcc-ppc/gcc/ -O2
> test.c
> test.c: In function `StartDisplay':
> test.c:27: could not split insn
> (insn 70 12 16 (set (reg:SI 9 r9 [125])
> (const_int 3472883711 [0xceffffff])) 295 {*movsi_internal1} (nil)
> (expr_list:REG_EQUIV (const_int 3472883711 [0xceffffff])
> (nil)))
> test.c:27: Internal compiler error in final_scan_insn, at final.c:2627
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>
> The bug seems to be a missing trunc_int_for_mode in simplify_and_const_int.
>
> Bootstrapped and regtested on powerpc-linux-gnu and x86-linux-gnu.
>
> OK to commit patch and testcase?
This is OK.
> Franz.
>
> * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
More information about the Gcc-patches
mailing list