On Nov 01, 2005 01:07 PM, Anthony Shipman <[EMAIL PROTECTED]> wrote: > But then if I compile with -O the constructor will be inlined. The > generated > machine code contains a loop which does nothing 100 times: > movl $100, %eax > L11: > decl %eax > jne .L11 > > I think that the optimiser should get rid of the loop once it has got > rid of > the body! > > Should I submit this as a bug?
I don't think so. This kind of thing is optimized away by gcc 4.1 already. Gr. Steven