I have a problem with optimization in my project.
If i compile with -O2 everything works fine. But when i use -O3 some functions doen't work properly anymore. I found out that source of this problem is optimization flag -finline-functions. Also when using this flag code size increase from ~33K to ~56K bytes. But the program runs a lot faster (sreen refreshes lot faster). Problem is that when i use certain function, one another doesn't work anymore.