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] Fix middle-end/18903, ICE in bsi_after_labels


On Thu, 2004-12-09 at 10:09 -0500, Andrew Pinski wrote:
> The problem here is that I had forgot that labels can be in any order
> but for some reason I wanted the moved label at the end of the label
> list which is a problem as some BB might not have labels on it.  This
> patch fixes that by placing the moved label in at the beginning of the
> BB instead of using bsi_after_labels to go after the current labels on
> the BB.
> 
> OK? Bootstrapped and tested on ppc-darwin with no regressions.
> 
> Thanks,
> Andrew Pinski
> 
> Testcase:
> void g (int s, int f)
> {
>    &&ff;
>    s = f;
>    ff:
>    goto end;
>    f = s;
>    end:;
> }
> 
> ChangeLog:
> 
> 	* tree-cfg.c (remove_bb): Put the moved label at the beginning of the
> 	basic block.
Approved assuming you install the testcase into the testsuite.
jeff



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