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]

Re: [patch] for PR 31526


On 4/10/07, Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> wrote:
Hello,

copy_cfg_body sets up the aux field of new blocks, and tries to clear
it at the end.  However, it wrongly uses n_basic_blocks instead of
last_basic_block (the latter may be larger if some basic blocks were
removed) to index these blocks, thus some blocks are left with non-NULL
aux field, causing ICE later.

Bootstrapped & regtested on i686.

This is ok.


Thanks,
Richard.

Zdenek

        PR tree-optimization/31526
        * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
        n_basic_blocks to find newly added blocks.


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