This is the mail archive of the gcc@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: insufficient inline optimisation?


On Nov 01, 2005 01:07 PM, Anthony Shipman <als@iinet.net.au> 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
Â
Â


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