Re: Question about Os, O2 and duplicating code

2013-04-10 Thread Richard Biener
On Wed, Apr 10, 2013 at 11:46 AM, Konstantin Vladimirov wrote: > Hi, > > I have this problem in private backend, but it is reproducible on > x86-gcc also, so I suppose core GCC probems. Lets consider simple > example: > > unsigned int buffer[10]; > > __attribute__((noinline)) void > myFunc(unsigne

Question about Os, O2 and duplicating code

2013-04-10 Thread Konstantin Vladimirov
Hi, I have this problem in private backend, but it is reproducible on x86-gcc also, so I suppose core GCC probems. Lets consider simple example: unsigned int buffer[10]; __attribute__((noinline)) void myFunc(unsigned int a, unsigned int b, unsigned int c) { unsigned int tmp; if( a & 0x2 )