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]

[PATCH, middle-end]: FIX PR41930, cc1 SEGV compiling maxval_r16.c


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?

Uros.

Attachment: p.diff.txt
Description: Text document


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