Ian Lance Taylor wrote:
With -O1 and above optimization, wrong instruction generated, which cause the stack corrupted. Appropriate your advise/suggestion.This looks like a bug in the backend support for the target you are using. I can't tell what target that is.
Yes, its looks like backend (gcc-core) issue only. PS: target gcc port submission in progress (review-4 is pending). Thanks Swami