__attribute__((optimize("O0"))) --> 'optimize' attribute directive ignored??????

Hello there~

I have some problem with using attribute((optimize(“O0”)))

I wanna run some code with gcc compiler and I don’t wanna optimize code particulary, so i’m trying to use attribute.

I’m using angstrom linux and gcc version is 4.3.3.

I already knew that i can’t use #pragma beacause of the gcc version.

But when i run code, warning pops up. it’s like

‘optimize’ attribute directive ignored

I used attribue like

void ptime(void ptime) attribute((optimize(“O0”))); //prototyping ptime function.

Please let me know what am I wrong or solution for this.