NO

Author Topic: Optimize with Inlining bug  (Read 2323 times)

Offline Akko

  • Member
  • *
  • Posts: 31
Optimize with Inlining bug
« on: July 28, 2018, 11:25:29 PM »
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.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Optimize with Inlining bug
« Reply #1 on: August 18, 2018, 07:39:21 PM »
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