Re: on removal of line number notes at the end of BBs

2006-10-12 Thread Jan Hubicka
> On Oct 11, 2006, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > > >> int x; int f() { x = 0; > >> while(1); } > > >> We get line number notes for code only up to "x = 0;". > > > I assume this is only a problem when not optimizing. > > The opposite, actually. It's optimization that breaks it

Re: on removal of line number notes at the end of BBs

2006-10-11 Thread Alexandre Oliva
On Oct 11, 2006, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: >> int x; int f() { x = 0; >> while(1); } >> We get line number notes for code only up to "x = 0;". > I assume this is only a problem when not optimizing. The opposite, actually. It's optimization that breaks it. Of course optimiz

Re: on removal of line number notes at the end of BBs

2006-10-11 Thread Ian Lance Taylor
Alexandre Oliva <[EMAIL PROTECTED]> writes: > The patch at http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00399.html > added code to remove line number notes from the end of basic blocks > after say turning a jump at the end of a basic block into a > fallthrough edge. > > This unfortunately causes

on removal of line number notes at the end of BBs

2006-10-11 Thread Alexandre Oliva
Hi, Jan, The patch at http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00399.html added code to remove line number notes from the end of basic blocks after say turning a jump at the end of a basic block into a fallthrough edge. This unfortunately causes line number info from becoming incorrect for te