News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Optimize with Inlining bug

Started by Akko, July 28, 2018, 11:25:29 PM

Previous topic - Next topic

Akko

I know its not helpful at all, but I cannot localize the bug, only reproduce it   :(

My app has several static inline void subroutine (void) as compiler hints.
It compiles flawlessly, also with gcc

But whenever I select Project Options Compiler Optimizations in combination with Inlining the program goes into an endless loop until it crashes.
However with either Optimizations None or Inlining None, it runs as expected.

Pelle

There is a known problem with some (not very common) loops. Most programs use loops, so I suspect you do too.
Any chance you can narrow things down using this new info?
/Pelle