This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, middle-end]: FIX PR41930, cc1 SEGV compiling maxval_r16.c
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 11 Nov 2009 14:20:07 -0600
- Subject: Re: [PATCH, middle-end]: FIX PR41930, cc1 SEGV compiling maxval_r16.c
- References: <4AFB1213.7040307@gmail.com>
2009/11/11 Uros Bizjak <ubizjak@gmail.com>:
> Hello!
>
> Attached patch fixes bootstrap on alpha. ?As explained in the PR,
> simplify_replace_fn_rtx gets called with argument x in the form of:
>
> (expr_list:REG_DEP_TRUE (symbol_ref:DI ("_OtsGeqX") [flags 0x41])
> ? ?(expr_list:REG_DEP_TRUE (mem:TF (reg/f:DI 75 [ array_3(D)->data ]) [3 S16
> A128])
> ? ? ? ?(expr_list:REG_DEP_TRUE (reg:TF 76)
> ? ? ? ? ? ?(nil))))
>
>
> Processing of this RTX recurses down to (nil) and this breaks compilation.
>
> 2009-11-11 ?Uros Bizjak <ubizjak@gmail.com>
>
> ? ?PR middle-end/41930
> ? ?* simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
> ? ?processing if XEXP (x, i) is NULL.
>
> Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu and
> alphaev68-unknown-linux-gnu where it fixes bootstrap failure.
>
> OK for mainline?
Ok.
Thanks,
Richard.
> Uros.
>